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