#[repr(C)]pub enum StyleTextBoxTrim {
None = 0,
TrimStart = 1,
TrimEnd = 2,
TrimBoth = 3,
}Expand description
Represents the text-box-trim CSS property.
Controls whether the leading is trimmed at the start/end of a block container.
Variants§
None = 0
No trimming
TrimStart = 1
Trim leading over the first formatted line
TrimEnd = 2
Trim leading under the last formatted line
TrimBoth = 3
Trim both start and end
Trait Implementations§
Source§impl Clone for StyleTextBoxTrim
impl Clone for StyleTextBoxTrim
Source§fn clone(&self) -> StyleTextBoxTrim
fn clone(&self) -> StyleTextBoxTrim
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StyleTextBoxTrim
impl Debug for StyleTextBoxTrim
Source§impl Default for StyleTextBoxTrim
impl Default for StyleTextBoxTrim
Source§fn default() -> StyleTextBoxTrim
fn default() -> StyleTextBoxTrim
Returns the “default value” for a type. Read more
Source§impl FormatAsRustCode for StyleTextBoxTrim
impl FormatAsRustCode for StyleTextBoxTrim
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<StyleTextBoxTrim> for CssProperty
impl From<StyleTextBoxTrim> for CssProperty
Source§fn from(e: StyleTextBoxTrim) -> Self
fn from(e: StyleTextBoxTrim) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleTextBoxTrim
impl Hash for StyleTextBoxTrim
Source§impl Ord for StyleTextBoxTrim
impl Ord for StyleTextBoxTrim
Source§fn cmp(&self, other: &StyleTextBoxTrim) -> Ordering
fn cmp(&self, other: &StyleTextBoxTrim) -> Ordering
1.21.0 (const: unstable) · 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 StyleTextBoxTrim
impl PartialEq for StyleTextBoxTrim
Source§fn eq(&self, other: &StyleTextBoxTrim) -> bool
fn eq(&self, other: &StyleTextBoxTrim) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StyleTextBoxTrim
impl PartialOrd for StyleTextBoxTrim
Source§impl PrintAsCssValue for StyleTextBoxTrim
impl PrintAsCssValue for StyleTextBoxTrim
fn print_as_css_value(&self) -> String
impl Copy for StyleTextBoxTrim
impl Eq for StyleTextBoxTrim
impl StructuralPartialEq for StyleTextBoxTrim
Auto Trait Implementations§
impl Freeze for StyleTextBoxTrim
impl RefUnwindSafe for StyleTextBoxTrim
impl Send for StyleTextBoxTrim
impl Sync for StyleTextBoxTrim
impl Unpin for StyleTextBoxTrim
impl UnsafeUnpin for StyleTextBoxTrim
impl UnwindSafe for StyleTextBoxTrim
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