[][src]Struct textwrap::word_separators::AsciiSpace

pub struct AsciiSpace;

Find words by splitting on regions of ' ' characters.

Trait Implementations

impl Clone for AsciiSpace[src]

impl Copy for AsciiSpace[src]

impl Debug for AsciiSpace[src]

impl Default for AsciiSpace[src]

impl WordSeparator for AsciiSpace[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.