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