MarkupEnumMember
struct · ferroui-base · v0.5.0
struct MarkupEnumMember
A member of an enumeration.
Members
name
name: &'static str
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.
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).
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopy
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.