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.)
Members
parameters
parameters: &'static [TypeOf]
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.
invoke
invoke: MarkupInvoke
Creates the instance from the arguments.
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).
parameter_name
fn parameter_name(self: &Self, index: usize) -> Option<&'static str>
The declared name of parameter index.
parameter_attributes
fn parameter_attributes(self: &Self, index: usize) -> &'static [MarkupAttribute]
The declared attributes of parameter index.
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.