Trait array_tool::string::AfterWhitespace [] [src]

pub trait AfterWhitespace {
    fn seek_end_of_whitespace(&self, offset: usize) -> Option<usize>;
}

After whitespace

Required Methods

Given offset method will seek from there to end of string to find the first non white space. Resulting value is counted from offset.

Example

use array_tool::string::AfterWhitespace;

assert_eq!(
  "asdf           asdf asdf".seek_end_of_whitespace(6),
  Some(9)
);

Implementations on Foreign Types

impl AfterWhitespace for str
[src]

Implementors