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