pub enum ChildrenMode {
Container,
Leaf,
TextOnly,
}Expand description
How a component handles children.
Variants§
Container
Accepts child components (e.g., View, ScrollView).
Leaf
Leaf node — no children allowed (e.g., Image, ActivityIndicator).
TextOnly
Accepts only text children (e.g., Text, TextInput).
Trait Implementations§
Source§impl Clone for ChildrenMode
impl Clone for ChildrenMode
Source§fn clone(&self) -> ChildrenMode
fn clone(&self) -> ChildrenMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChildrenMode
impl Debug for ChildrenMode
Source§impl PartialEq for ChildrenMode
impl PartialEq for ChildrenMode
impl Copy for ChildrenMode
impl Eq for ChildrenMode
impl StructuralPartialEq for ChildrenMode
Auto Trait Implementations§
impl Freeze for ChildrenMode
impl RefUnwindSafe for ChildrenMode
impl Send for ChildrenMode
impl Sync for ChildrenMode
impl Unpin for ChildrenMode
impl UnsafeUnpin for ChildrenMode
impl UnwindSafe for ChildrenMode
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