StrAssertions

Trait StrAssertions 

Source
pub trait StrAssertions<T>
where T: Into<String> + Clone,
{ // Required methods fn contains(&self, expected: &str); fn starts_with(&self, expected_start: &str); fn ends_with(&self, expected_end: &str); fn is_empty(&self); fn is_not_empty(&self); fn has_length(&self, expected_length: usize); fn contains_all(&self, args: &[&str]); fn contains_any(&self, args: &[&str]); }

Required Methods§

Source

fn contains(&self, expected: &str)

Source

fn starts_with(&self, expected_start: &str)

Source

fn ends_with(&self, expected_end: &str)

Source

fn is_empty(&self)

Source

fn is_not_empty(&self)

Source

fn has_length(&self, expected_length: usize)

Source

fn contains_all(&self, args: &[&str])

Source

fn contains_any(&self, args: &[&str])

Implementors§

Source§

impl<T> StrAssertions<T> for Asserter<T>
where T: Into<String> + Clone,