#[repr(C)]pub struct LayoutMarginRight {
pub inner: PixelValue,
}Expand description
Layout margin right value
Fields§
§inner: PixelValueImplementations§
Source§impl LayoutMarginRight
impl LayoutMarginRight
pub const fn zero() -> Self
pub const fn const_px(value: isize) -> Self
pub const fn const_em(value: isize) -> Self
pub const fn const_pt(value: isize) -> Self
pub const fn const_percent(value: isize) -> Self
pub const fn const_in(value: isize) -> Self
pub const fn const_cm(value: isize) -> Self
pub const fn const_mm(value: isize) -> Self
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 LayoutMarginRight
impl Clone for LayoutMarginRight
Source§fn clone(&self) -> LayoutMarginRight
fn clone(&self) -> LayoutMarginRight
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 LayoutMarginRight
impl Debug for LayoutMarginRight
Source§impl Default for LayoutMarginRight
impl Default for LayoutMarginRight
Source§fn default() -> LayoutMarginRight
fn default() -> LayoutMarginRight
Returns the “default value” for a type. Read more
Source§impl FormatAsCssValue for LayoutMarginRight
impl FormatAsCssValue for LayoutMarginRight
fn format_as_css_value(&self, f: &mut Formatter<'_>) -> Result
Source§impl FormatAsRustCode for LayoutMarginRight
impl FormatAsRustCode for LayoutMarginRight
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<LayoutMarginRight> for CssProperty
impl From<LayoutMarginRight> for CssProperty
Source§fn from(e: LayoutMarginRight) -> Self
fn from(e: LayoutMarginRight) -> Self
Converts to this type from the input type.
Source§impl Hash for LayoutMarginRight
impl Hash for LayoutMarginRight
Source§impl Ord for LayoutMarginRight
impl Ord for LayoutMarginRight
Source§fn cmp(&self, other: &LayoutMarginRight) -> Ordering
fn cmp(&self, other: &LayoutMarginRight) -> 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 LayoutMarginRight
impl PartialEq for LayoutMarginRight
Source§impl PartialOrd for LayoutMarginRight
impl PartialOrd for LayoutMarginRight
Source§impl PrintAsCssValue for LayoutMarginRight
impl PrintAsCssValue for LayoutMarginRight
fn print_as_css_value(&self) -> String
impl Copy for LayoutMarginRight
impl Eq for LayoutMarginRight
impl StructuralPartialEq for LayoutMarginRight
Auto Trait Implementations§
impl Freeze for LayoutMarginRight
impl RefUnwindSafe for LayoutMarginRight
impl Send for LayoutMarginRight
impl Sync for LayoutMarginRight
impl Unpin for LayoutMarginRight
impl UnwindSafe for LayoutMarginRight
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