[−][src]Struct textwrap::word_separators::AsciiSpace
Find words by splitting on regions of ' '
characters.
Trait Implementations
impl Clone for AsciiSpace
[src]
fn clone(&self) -> AsciiSpace
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AsciiSpace
[src]
impl Debug for AsciiSpace
[src]
impl Default for AsciiSpace
[src]
fn default() -> 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,