pub struct CollapsibleMarginSet { /* private fields */ }
Expand description
A set of margins that are available for collapsing with for block layout’s margin collapsing
Implementations§
source§impl CollapsibleMarginSet
impl CollapsibleMarginSet
sourcepub fn from_margin(margin: f32) -> Self
pub fn from_margin(margin: f32) -> Self
Create a set from a single margin
sourcepub fn collapse_with_margin(self, margin: f32) -> Self
pub fn collapse_with_margin(self, margin: f32) -> Self
Collapse a single margin with this set
sourcepub fn collapse_with_set(self, other: CollapsibleMarginSet) -> Self
pub fn collapse_with_set(self, other: CollapsibleMarginSet) -> Self
Collapse another margin set with this set
Trait Implementations§
source§impl Clone for CollapsibleMarginSet
impl Clone for CollapsibleMarginSet
source§fn clone(&self) -> CollapsibleMarginSet
fn clone(&self) -> CollapsibleMarginSet
Returns a copy 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 CollapsibleMarginSet
impl Debug for CollapsibleMarginSet
source§impl PartialEq for CollapsibleMarginSet
impl PartialEq for CollapsibleMarginSet
impl Copy for CollapsibleMarginSet
impl StructuralPartialEq for CollapsibleMarginSet
Auto Trait Implementations§
impl Freeze for CollapsibleMarginSet
impl RefUnwindSafe for CollapsibleMarginSet
impl Send for CollapsibleMarginSet
impl Sync for CollapsibleMarginSet
impl Unpin for CollapsibleMarginSet
impl UnwindSafe for CollapsibleMarginSet
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)