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]
impl Clone for NoHyphenation
[src]