pub enum LabelWrap {
None,
Word,
Char,
WordChar,
}Expand description
Word-wrap behavior for WidgetKind::Label.
Variants§
None
No line wrapping (default).
Word
Wrap lines on word boundaries.
Char
Wrap lines on character boundaries.
WordChar
Wrap lines on word boundaries, breaking words if necessary.
Implementations§
Source§impl LabelWrap
impl LabelWrap
Sourcepub const NO_WRAP: Self = Self::None
pub const NO_WRAP: Self = Self::None
Alias for LabelWrap::None.
Sourcepub const NoWrap: Self = Self::None
pub const NoWrap: Self = Self::None
Alias for LabelWrap::None.
Sourcepub const fn is_wrapping(self) -> bool
pub const fn is_wrapping(self) -> bool
Returns true if line wrapping is active.
Trait Implementations§
impl Copy for LabelWrap
impl Eq for LabelWrap
impl StructuralPartialEq for LabelWrap
Auto Trait Implementations§
impl Forget for LabelWrap
impl Freeze for LabelWrap
impl Move for LabelWrap
impl RefUnwindSafe for LabelWrap
impl Send for LabelWrap
impl Sync for LabelWrap
impl Unpin for LabelWrap
impl UnsafeUnpin for LabelWrap
impl UnwindSafe for LabelWrap
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