#[repr(transparent)]pub struct MaxWidth(pub Length);Expand description
Keyless style! property wrapper setting maximum layout width constraint.
Tuple Fields§
§0: LengthTrait Implementations§
impl Copy for MaxWidth
impl StructuralPartialEq for MaxWidth
Source§impl StyleApply for MaxWidth
StyleApply implementation for MaxWidth.
impl StyleApply for MaxWidth
StyleApply implementation for MaxWidth.
Source§fn apply_in_place(self, style: &mut Style)
fn apply_in_place(self, style: &mut Style)
Applies MaxWidth directly in place onto style.
§Arguments
Self- Maximum width wrapper.&mut Style- Style accumulator mutated in place.
Auto Trait Implementations§
impl Forget for MaxWidth
impl Freeze for MaxWidth
impl Move for MaxWidth
impl RefUnwindSafe for MaxWidth
impl Send for MaxWidth
impl Sync for MaxWidth
impl Unpin for MaxWidth
impl UnsafeUnpin for MaxWidth
impl UnwindSafe for MaxWidth
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