pub struct TextOptions {
pub overflow: TextOverflow,
pub soft_wrap: bool,
pub max_lines: Option<usize>,
pub min_lines: usize,
}Expand description
High-level text widget options for constrained UI text.
None for max_lines means no explicit line limit.
Fields§
§overflow: TextOverflow§soft_wrap: bool§max_lines: Option<usize>§min_lines: usizeTrait Implementations§
Source§impl Clone for TextOptions
impl Clone for TextOptions
Source§fn clone(&self) -> TextOptions
fn clone(&self) -> TextOptions
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 moreSource§impl Debug for TextOptions
impl Debug for TextOptions
Source§impl Default for TextOptions
impl Default for TextOptions
Source§impl From<TextLayoutOptions> for TextOptions
impl From<TextLayoutOptions> for TextOptions
Source§fn from(options: TextLayoutOptions) -> Self
fn from(options: TextLayoutOptions) -> Self
Converts to this type from the input type.
Source§impl From<TextOptions> for TextLayoutOptions
impl From<TextOptions> for TextLayoutOptions
Source§fn from(options: TextOptions) -> Self
fn from(options: TextOptions) -> Self
Converts to this type from the input type.
Source§impl Hash for TextOptions
impl Hash for TextOptions
Source§impl PartialEq for TextOptions
impl PartialEq for TextOptions
Source§fn eq(&self, other: &TextOptions) -> bool
fn eq(&self, other: &TextOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TextOptions
impl Eq for TextOptions
impl StructuralPartialEq for TextOptions
Auto Trait Implementations§
impl Freeze for TextOptions
impl RefUnwindSafe for TextOptions
impl Send for TextOptions
impl Sync for TextOptions
impl Unpin for TextOptions
impl UnsafeUnpin for TextOptions
impl UnwindSafe for TextOptions
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