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