FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MarkupEnumMember

    struct · ferroui-base · v0.5.0

    struct MarkupEnumMember
    

    A member of an enumeration.

    View source

    Members

    name

    name: &'static str
    

    Source

    value

    value: i64
    

    The numeric value (the bits, for a flags enumeration). The member as a value of the enumeration type is get: the conversion of this value (MarkupType::enum_from_value), so that a member costs no code of its own.

    Source

    rust_variant

    rust_variant: Option<&'static str>
    

    The identifier of the Rust variant of a plain enumeration (the member name unless the declaration renames it), for the emitter of Rust source: the member is <public path of the type>::<rust_variant>. None for the members of a set of flags (their constants are arbitrary expressions).

    Source

    get

    fn get(self: &Self, markup: &MarkupType) -> Option<BoxedValue>
    

    The member as a value of the enumeration type markup (the enumeration that lists it): the value of the enumeration with the numeric value of the member. None only for metadata without MarkupType::enum_from_value.

    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.