pub struct TextLayoutOptions {
pub overflow: TextOverflow,
pub soft_wrap: bool,
pub max_lines: usize,
pub min_lines: usize,
}Expand description
Text layout behavior options matching Compose BasicText controls.
Fields§
§overflow: TextOverflow§soft_wrap: bool§max_lines: usize§min_lines: usizeImplementations§
Source§impl TextLayoutOptions
impl TextLayoutOptions
pub fn normalized(self) -> Self
Trait Implementations§
Source§impl Clone for TextLayoutOptions
impl Clone for TextLayoutOptions
Source§fn clone(&self) -> TextLayoutOptions
fn clone(&self) -> TextLayoutOptions
Returns a duplicate 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 TextLayoutOptions
impl Debug for TextLayoutOptions
Source§impl Default for TextLayoutOptions
impl Default for TextLayoutOptions
Source§impl Hash for TextLayoutOptions
impl Hash for TextLayoutOptions
Source§impl PartialEq for TextLayoutOptions
impl PartialEq for TextLayoutOptions
impl Copy for TextLayoutOptions
impl Eq for TextLayoutOptions
impl StructuralPartialEq for TextLayoutOptions
Auto Trait Implementations§
impl Freeze for TextLayoutOptions
impl RefUnwindSafe for TextLayoutOptions
impl Send for TextLayoutOptions
impl Sync for TextLayoutOptions
impl Unpin for TextLayoutOptions
impl UnsafeUnpin for TextLayoutOptions
impl UnwindSafe for TextLayoutOptions
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