pub struct ContextWordBreakOptions {
pub word_break: WordBreak,
pub limit: NonZeroUsize,
}
Expand description
Options that ensure word break will be possible.
Fields§
§word_break: WordBreak
The type of word-breaking used to display the text.
limit: NonZeroUsize
The maximum length of an unbreakable part (before the entire message is blocked).
Trait Implementations§
Source§impl Clone for ContextWordBreakOptions
impl Clone for ContextWordBreakOptions
Source§fn clone(&self) -> ContextWordBreakOptions
fn clone(&self) -> ContextWordBreakOptions
Returns a copy 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 ContextWordBreakOptions
impl Debug for ContextWordBreakOptions
Auto Trait Implementations§
impl Freeze for ContextWordBreakOptions
impl RefUnwindSafe for ContextWordBreakOptions
impl Send for ContextWordBreakOptions
impl Sync for ContextWordBreakOptions
impl Unpin for ContextWordBreakOptions
impl UnwindSafe for ContextWordBreakOptions
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