FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MarkupConstructor

    struct · ferroui-base · v0.5.0

    struct MarkupConstructor
    

    A constructor with arguments. (The parameterless constructor of a class is its TypeInfo::default_constructor; other types list it here with no parameters.)

    View source

    Members

    parameters

    parameters: &'static [TypeOf]
    

    Source

    parameter_info

    parameter_info: &'static [MarkupParameter]
    

    What the declaration states about each parameter beyond its type (its name and attributes), by index. Empty when the constructor is declared in the positional form (A, B) => callable, otherwise as long as parameters.

    Source

    invoke

    invoke: MarkupInvoke
    

    Creates the instance from the arguments.

    Source

    emit

    emit: CompilerMetadata<Option<MarkupEmit>>
    

    The typed function the declaration generated for the constructor (see MarkupEmit): __markup_new_<n>(a0: A, ..) -> T, where T is the value type of the declared type (MarkupType::value).

    Source

    parameter_name

    fn parameter_name(self: &Self, index: usize) -> Option<&'static str>
    

    The declared name of parameter index.

    Source

    parameter_attributes

    fn parameter_attributes(self: &Self, index: usize) -> &'static [MarkupAttribute]
    

    The declared attributes of parameter index.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.