#[repr(C)]pub enum StyleTextOverflow {
Clip = 0,
Ellipsis = 1,
}Expand description
Represents the text-overflow CSS property.
Determines how inline content that is clipped (because the block container
has overflow other than visible) is signaled to the user at the end of
the line box.
CSS Overflow Module Level 3 §5: https://www.w3.org/TR/css-overflow-3/#text-overflow
Variants§
Clip = 0
Clip the inline content at the edge of its line box. This is the initial value.
Ellipsis = 1
Render an ellipsis (…, U+2026) to represent clipped inline content.
Trait Implementations§
Source§impl Clone for StyleTextOverflow
impl Clone for StyleTextOverflow
Source§fn clone(&self) -> StyleTextOverflow
fn clone(&self) -> StyleTextOverflow
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 moreimpl Copy for StyleTextOverflow
Source§impl Debug for StyleTextOverflow
impl Debug for StyleTextOverflow
Source§impl Default for StyleTextOverflow
impl Default for StyleTextOverflow
Source§fn default() -> StyleTextOverflow
fn default() -> StyleTextOverflow
Returns the “default value” for a type. Read more
impl Eq for StyleTextOverflow
Source§impl FormatAsRustCode for StyleTextOverflow
impl FormatAsRustCode for StyleTextOverflow
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<StyleTextOverflow> for CssProperty
impl From<StyleTextOverflow> for CssProperty
Source§fn from(e: StyleTextOverflow) -> Self
fn from(e: StyleTextOverflow) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleTextOverflow
impl Hash for StyleTextOverflow
Source§impl Ord for StyleTextOverflow
impl Ord for StyleTextOverflow
Source§fn cmp(&self, other: &StyleTextOverflow) -> Ordering
fn cmp(&self, other: &StyleTextOverflow) -> 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 StyleTextOverflow
impl PartialEq for StyleTextOverflow
Source§impl PartialOrd for StyleTextOverflow
impl PartialOrd for StyleTextOverflow
Source§impl PrintAsCssValue for StyleTextOverflow
impl PrintAsCssValue for StyleTextOverflow
fn print_as_css_value(&self) -> String
impl StructuralPartialEq for StyleTextOverflow
Auto Trait Implementations§
impl Freeze for StyleTextOverflow
impl RefUnwindSafe for StyleTextOverflow
impl Send for StyleTextOverflow
impl Sync for StyleTextOverflow
impl Unpin for StyleTextOverflow
impl UnsafeUnpin for StyleTextOverflow
impl UnwindSafe for StyleTextOverflow
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