Struct textwrap::NoHyphenation
[−]
[src]
pub struct NoHyphenation;
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
impl Clone for NoHyphenation
[src]
fn clone(&self) -> NoHyphenation
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for NoHyphenation
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl WordSplitter for NoHyphenation
[src]
NoHyphenation
implements WordSplitter
by not splitting the
word at all.