Enum agui_core::widget::BuildResult [−][src]
#[non_exhaustive]
pub enum BuildResult {
Empty,
One(WidgetRef),
Many(Vec<WidgetRef>),
Error(Box<dyn Error>),
}
Expand description
Encapsulates the result of a widget build()
method.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Empty
Indicates that the widget has no children.
One(WidgetRef)
Tuple Fields
0: WidgetRef
The widget contains a single child.
Many(Vec<WidgetRef>)
The widget contains a many children.
Error(Box<dyn Error>)
The widget has failed to build properly, and should construction should halt.
Panics
Currently this results in a panic!()
, however that may change in the future.
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for BuildResult
impl !Send for BuildResult
impl !Sync for BuildResult
impl Unpin for BuildResult
impl !UnwindSafe for BuildResult
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more