pub enum MarginEdge {
Px(SignedMetricRef),
Auto,
}Expand description
Margin edges support auto in addition to px/token lengths.
Variants§
Px(SignedMetricRef)
Auto
Implementations§
Source§impl MarginEdge
impl MarginEdge
Trait Implementations§
Source§impl Clone for MarginEdge
impl Clone for MarginEdge
Source§fn clone(&self) -> MarginEdge
fn clone(&self) -> MarginEdge
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 MarginEdge
impl Debug for MarginEdge
Source§impl From<MetricRef> for MarginEdge
impl From<MetricRef> for MarginEdge
Source§impl From<Px> for MarginEdge
impl From<Px> for MarginEdge
Source§impl From<SignedMetricRef> for MarginEdge
impl From<SignedMetricRef> for MarginEdge
Source§fn from(value: SignedMetricRef) -> Self
fn from(value: SignedMetricRef) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MarginEdge
impl RefUnwindSafe for MarginEdge
impl Send for MarginEdge
impl Sync for MarginEdge
impl Unpin for MarginEdge
impl UnsafeUnpin for MarginEdge
impl UnwindSafe for MarginEdge
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