pub enum WidgetCategory {
Leaf,
ContainerA,
ContainerB,
}Expand description
How a catalog widget accepts children. Drives the designer’s outline
rendering and the runtime WidgetCatalog::build_with_children
factory. Default is WidgetCategory::Leaf.
Variants§
Leaf
No children — a leaf control (Button, TextWidget, Slider, …).
ContainerA
Ordered bare children (VStack, HStack, ZStack, Grid, Padding, …).
ContainerB
Named slots (Card → header/content/footer; Dialog; TabWidget; …).
Trait Implementations§
Source§impl Clone for WidgetCategory
impl Clone for WidgetCategory
Source§fn clone(&self) -> WidgetCategory
fn clone(&self) -> WidgetCategory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WidgetCategory
Source§impl Debug for WidgetCategory
impl Debug for WidgetCategory
impl Eq for WidgetCategory
Source§impl PartialEq for WidgetCategory
impl PartialEq for WidgetCategory
impl StructuralPartialEq for WidgetCategory
Auto Trait Implementations§
impl Freeze for WidgetCategory
impl RefUnwindSafe for WidgetCategory
impl Send for WidgetCategory
impl Sync for WidgetCategory
impl Unpin for WidgetCategory
impl UnsafeUnpin for WidgetCategory
impl UnwindSafe for WidgetCategory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more