Enum i_slint_core::items::TextOverflow
source · [−]#[repr(C)]
pub enum TextOverflow {
Clip,
Elide,
}Expand description
This enum describes the how the text appear if it is too wide to fit in the Text width.
Variants
Clip
The text will simply be clipped.
Elide
The text will be elided with ….
Trait Implementations
sourceimpl Clone for TextOverflow
impl Clone for TextOverflow
sourcefn clone(&self) -> TextOverflow
fn clone(&self) -> TextOverflow
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for TextOverflow
impl Debug for TextOverflow
sourceimpl Default for TextOverflow
impl Default for TextOverflow
sourceimpl Display for TextOverflow
impl Display for TextOverflow
sourceimpl FromStr for TextOverflow
impl FromStr for TextOverflow
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourceimpl Hash for TextOverflow
impl Hash for TextOverflow
sourceimpl PartialEq<TextOverflow> for TextOverflow
impl PartialEq<TextOverflow> for TextOverflow
sourcefn eq(&self, other: &TextOverflow) -> bool
fn eq(&self, other: &TextOverflow) -> bool
sourceimpl TryFrom<&str> for TextOverflow
impl TryFrom<&str> for TextOverflow
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
impl Copy for TextOverflow
impl Eq for TextOverflow
impl StructuralEq for TextOverflow
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
sourcefn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.