[−][src]Trait fluid::traits::string::ShouldString
Extension for Should<AsRef
Required methods
fn contain<P>(self, right: P) -> ChainableAssert<ContainString<S, P>> where
P: StringPattern,
P: StringPattern,
Checks that a string contains a pattern.
Example
"Hello".should().contain('l'); "Hello".should().contain("ll"); "Hello".should().contain(['a', 'e', 'i']);
"Hello".should().not().contain(|c: char| c.is_numeric());
fn start_with<P>(self, right: P) -> ChainableAssert<StartWithString<S, P>> where
P: StringPattern,
P: StringPattern,
fn end_with<P>(self, right: P) -> ChainableAssert<EndWithString<S, P>> where
P: StringPattern,
P: StringPattern,
fn be_empty(self) -> ChainableAssert<BeEmptyString<S>>
Implementors
impl<S: Debug> ShouldString<S> for Should<S> where
S: AsRef<str>,
[src]
S: AsRef<str>,
fn contain<P>(self, right: P) -> ChainableAssert<ContainString<S, P>> where
P: StringPattern,
[src]
P: StringPattern,
fn start_with<P>(self, right: P) -> ChainableAssert<StartWithString<S, P>> where
P: StringPattern,
[src]
P: StringPattern,
fn end_with<P>(self, right: P) -> ChainableAssert<EndWithString<S, P>> where
P: StringPattern,
[src]
P: StringPattern,