pub enum TextWrapMode {
None,
Wrap,
WrapWords,
}Expand description
How TextBlock should wrap long lines
Variants§
None
No text wrapping - content extending beyond width is clipped
Wrap
Character-level wrapping - text wraps at any character
WrapWords
Word-aware wrapping - text wraps at word boundaries
Trait Implementations§
Source§impl Clone for TextWrapMode
impl Clone for TextWrapMode
Source§fn clone(&self) -> TextWrapMode
fn clone(&self) -> TextWrapMode
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 TextWrapMode
Source§impl Debug for TextWrapMode
impl Debug for TextWrapMode
impl Eq for TextWrapMode
Source§impl PartialEq for TextWrapMode
impl PartialEq for TextWrapMode
Source§fn eq(&self, other: &TextWrapMode) -> bool
fn eq(&self, other: &TextWrapMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextWrapMode
Auto Trait Implementations§
impl Freeze for TextWrapMode
impl RefUnwindSafe for TextWrapMode
impl Send for TextWrapMode
impl Sync for TextWrapMode
impl Unpin for TextWrapMode
impl UnsafeUnpin for TextWrapMode
impl UnwindSafe for TextWrapMode
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