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