pub struct Child<C> { /* private fields */ }Implementations§
Source§impl<C> Child<C>
impl<C> Child<C>
pub fn new(content: C) -> Self
pub fn content(&self) -> &C
pub fn optional(self) -> Self
pub fn optional_with_priority(self, priority: usize) -> Self
pub fn with_min(self, min: usize) -> Self
pub fn with_max(self, max: usize) -> Self
pub fn clamp(self, min: usize, max: usize) -> Self
pub fn with_size(self, size: usize) -> Self
pub fn with_grow(self, grow: f64) -> Self
pub fn constraints(&self) -> ChildConstraints
Auto Trait Implementations§
impl<C> Freeze for Child<C>where
C: Freeze,
impl<C> RefUnwindSafe for Child<C>where
C: RefUnwindSafe,
impl<C> Send for Child<C>where
C: Send,
impl<C> Sync for Child<C>where
C: Sync,
impl<C> Unpin for Child<C>where
C: Unpin,
impl<C> UnwindSafe for Child<C>where
C: UnwindSafe,
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