pub struct NoHyphenation;
Expand description
Use this as a Wrapper.splitter
to avoid any kind of
hyphenation:
use textwrap::{Wrapper, NoHyphenation};
let wrapper = Wrapper::with_splitter(8, NoHyphenation);
assert_eq!(wrapper.wrap("foo bar-baz"), vec!["foo", "bar-baz"]);
Trait Implementations§
Source§impl Clone for NoHyphenation
impl Clone for NoHyphenation
Source§fn clone(&self) -> NoHyphenation
fn clone(&self) -> NoHyphenation
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 NoHyphenation
impl Debug for NoHyphenation
Source§impl WordSplitter for NoHyphenation
impl WordSplitter for NoHyphenation
NoHyphenation
implements WordSplitter
by not splitting the
word at all.
Auto Trait Implementations§
impl Freeze for NoHyphenation
impl RefUnwindSafe for NoHyphenation
impl Send for NoHyphenation
impl Sync for NoHyphenation
impl Unpin for NoHyphenation
impl UnwindSafe for NoHyphenation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)