Struct textwrap::word_separators::AsciiSpace [−][src]
pub struct AsciiSpace;
Expand description
Find words by splitting on regions of ' '
characters.
Trait Implementations
Returns the “default value” for a type. Read more
Split line
into words separated by regions of ' '
characters.
Examples
use textwrap::core::Word;
use textwrap::word_separators::{AsciiSpace, WordSeparator};
let words = AsciiSpace.find_words("Hello World!").collect::<Vec<_>>();
assert_eq!(words, vec![Word::from("Hello "),
Word::from("World!")]);
Auto Trait Implementations
impl RefUnwindSafe for AsciiSpace
impl Send for AsciiSpace
impl Sync for AsciiSpace
impl Unpin for AsciiSpace
impl UnwindSafe for AsciiSpace
Blanket Implementations
Mutably borrows from an owned value. Read more