#[repr(C)]pub struct LayoutMinWidth {
pub inner: PixelValue,
}Fields§
§inner: PixelValueImplementations§
Source§impl LayoutMinWidth
impl LayoutMinWidth
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 LayoutMinWidth
impl Clone for LayoutMinWidth
Source§fn clone(&self) -> LayoutMinWidth
fn clone(&self) -> LayoutMinWidth
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 LayoutMinWidth
impl Debug for LayoutMinWidth
Source§impl Default for LayoutMinWidth
impl Default for LayoutMinWidth
Source§impl FormatAsRustCode for LayoutMinWidth
impl FormatAsRustCode for LayoutMinWidth
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<LayoutMinWidth> for CssProperty
impl From<LayoutMinWidth> for CssProperty
Source§fn from(e: LayoutMinWidth) -> Self
fn from(e: LayoutMinWidth) -> Self
Converts to this type from the input type.
Source§impl Hash for LayoutMinWidth
impl Hash for LayoutMinWidth
Source§impl Ord for LayoutMinWidth
impl Ord for LayoutMinWidth
Source§fn cmp(&self, other: &LayoutMinWidth) -> Ordering
fn cmp(&self, other: &LayoutMinWidth) -> 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 LayoutMinWidth
impl PartialEq for LayoutMinWidth
Source§impl PartialOrd for LayoutMinWidth
impl PartialOrd for LayoutMinWidth
Source§impl PrintAsCssValue for LayoutMinWidth
impl PrintAsCssValue for LayoutMinWidth
fn print_as_css_value(&self) -> String
impl Copy for LayoutMinWidth
impl Eq for LayoutMinWidth
impl StructuralPartialEq for LayoutMinWidth
Auto Trait Implementations§
impl Freeze for LayoutMinWidth
impl RefUnwindSafe for LayoutMinWidth
impl Send for LayoutMinWidth
impl Sync for LayoutMinWidth
impl Unpin for LayoutMinWidth
impl UnwindSafe for LayoutMinWidth
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