Enum freya_node_state::TextOverflow
source · pub enum TextOverflow {
Clip,
Ellipsis,
Custom(String),
}
Variants§
Implementations§
source§impl TextOverflow
impl TextOverflow
pub fn get_ellipsis(&self) -> Option<&str>
Trait Implementations§
source§impl Clone for TextOverflow
impl Clone for TextOverflow
source§fn clone(&self) -> TextOverflow
fn clone(&self) -> TextOverflow
Returns a copy 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 TextOverflow
impl Debug for TextOverflow
source§impl Default for TextOverflow
impl Default for TextOverflow
source§fn default() -> TextOverflow
fn default() -> TextOverflow
Returns the “default value” for a type. Read more
source§impl Parse for TextOverflow
impl Parse for TextOverflow
source§impl PartialEq<TextOverflow> for TextOverflow
impl PartialEq<TextOverflow> for TextOverflow
source§fn eq(&self, other: &TextOverflow) -> bool
fn eq(&self, other: &TextOverflow) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TextOverflow
Auto Trait Implementations§
impl RefUnwindSafe for TextOverflow
impl Send for TextOverflow
impl Sync for TextOverflow
impl Unpin for TextOverflow
impl UnwindSafe for TextOverflow
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.