#[repr(C)]pub struct LayoutMarginBottom {
pub inner: PixelValue,
}Expand description
Represents a padding-bottom attribute
Fields§
§inner: PixelValueImplementations§
Source§impl LayoutMarginBottom
impl LayoutMarginBottom
pub const fn zero() -> Self
Sourcepub const fn const_px(value: isize) -> Self
pub const fn const_px(value: isize) -> Self
Same as PixelValue::px(), but only accepts whole numbers,
since using f32 in const fn is not yet stabilized.
Sourcepub const fn const_em(value: isize) -> Self
pub const fn const_em(value: isize) -> Self
Same as PixelValue::em(), but only accepts whole numbers,
since using f32 in const fn is not yet stabilized.
Sourcepub const fn const_pt(value: isize) -> Self
pub const fn const_pt(value: isize) -> Self
Same as PixelValue::pt(), but only accepts whole numbers,
since using f32 in const fn is not yet stabilized.
Sourcepub const fn const_percent(value: isize) -> Self
pub const fn const_percent(value: isize) -> Self
Same as PixelValue::pt(), but only accepts whole numbers,
since using f32 in const fn is not yet stabilized.
pub const fn const_from_metric(metric: SizeMetric, value: isize) -> Self
pub fn px(value: f32) -> Self
pub fn em(value: f32) -> Self
pub fn pt(value: f32) -> Self
pub fn percent(value: f32) -> Self
pub fn from_metric(metric: SizeMetric, value: f32) -> Self
pub fn interpolate(&self, other: &Self, t: f32) -> Self
Trait Implementations§
Source§impl Clone for LayoutMarginBottom
impl Clone for LayoutMarginBottom
Source§fn clone(&self) -> LayoutMarginBottom
fn clone(&self) -> LayoutMarginBottom
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 LayoutMarginBottom
impl Debug for LayoutMarginBottom
Source§impl Default for LayoutMarginBottom
impl Default for LayoutMarginBottom
Source§fn default() -> LayoutMarginBottom
fn default() -> LayoutMarginBottom
Returns the “default value” for a type. Read more
Source§impl Display for LayoutMarginBottom
impl Display for LayoutMarginBottom
Source§impl From<LayoutMarginBottom> for CssProperty
impl From<LayoutMarginBottom> for CssProperty
Source§fn from(e: LayoutMarginBottom) -> Self
fn from(e: LayoutMarginBottom) -> Self
Converts to this type from the input type.
Source§impl Hash for LayoutMarginBottom
impl Hash for LayoutMarginBottom
Source§impl Ord for LayoutMarginBottom
impl Ord for LayoutMarginBottom
Source§fn cmp(&self, other: &LayoutMarginBottom) -> Ordering
fn cmp(&self, other: &LayoutMarginBottom) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LayoutMarginBottom
impl PartialEq for LayoutMarginBottom
Source§impl PartialOrd for LayoutMarginBottom
impl PartialOrd for LayoutMarginBottom
Source§impl PrintAsCssValue for LayoutMarginBottom
impl PrintAsCssValue for LayoutMarginBottom
fn print_as_css_value(&self) -> String
impl Copy for LayoutMarginBottom
impl Eq for LayoutMarginBottom
impl StructuralPartialEq for LayoutMarginBottom
Auto Trait Implementations§
impl Freeze for LayoutMarginBottom
impl RefUnwindSafe for LayoutMarginBottom
impl Send for LayoutMarginBottom
impl Sync for LayoutMarginBottom
impl Unpin for LayoutMarginBottom
impl UnwindSafe for LayoutMarginBottom
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