pub struct TextWrapping {
pub max_width: f32,
pub max_rows: usize,
pub break_anywhere: bool,
pub overflow_character: Option<char>,
}Fields§
§max_width: f32Try to break text so that no row is wider than this.
Set to f32::INFINITY to turn off wrapping.
Note that \n always produces a new line.
max_rows: usizeMaximum amount of rows the text should have.
Set to 0 to disable this.
break_anywhere: boolDon’t try to break text at an appropriate place.
overflow_character: Option<char>Character to use to represent clipped text, … for example, which is the default.
Trait Implementations§
Source§impl Clone for TextWrapping
impl Clone for TextWrapping
Source§fn clone(&self) -> TextWrapping
fn clone(&self) -> TextWrapping
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 TextWrapping
impl Debug for TextWrapping
Source§impl Default for TextWrapping
impl Default for TextWrapping
Source§fn default() -> TextWrapping
fn default() -> TextWrapping
Returns the “default value” for a type. Read more
Source§impl Hash for TextWrapping
impl Hash for TextWrapping
Source§impl PartialEq for TextWrapping
impl PartialEq for TextWrapping
impl StructuralPartialEq for TextWrapping
Auto Trait Implementations§
impl Freeze for TextWrapping
impl RefUnwindSafe for TextWrapping
impl Send for TextWrapping
impl Sync for TextWrapping
impl Unpin for TextWrapping
impl UnwindSafe for TextWrapping
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