Struct spectral::Spec
[−]
[src]
pub struct Spec<'s, S: 's> { pub subject: &'s S, // some fields omitted }
Fields
subject: &'s S
pub struct Spec<'s, S: 's> { pub subject: &'s S, // some fields omitted }
subject: &'s S
impl<'s, S> Spec<'s, S>
[src]fn with_expected(self, expected: String) -> Self
fn with_actual(self, actual: String) -> Self
fn fail(self)
impl<'s, S> Spec<'s, S> where S: Debug + PartialEq
[src]fn is_equal_to(self, expected: &S)
impl<'s, S> Spec<'s, S> where S: Debug
[src]fn matches<F>(self, matching_function: F) where F: Fn(&'s S) -> bool
fn map<F, T>(self, mapping_function: F) -> Spec<'s, T> where F: Fn(&'s S) -> &'s T
impl<'s, T> OrderedSpec<T> for Spec<'s, T> where T: Debug + PartialOrd
[src]fn is_less_than(self, other: &T)
fn is_less_than_or_equal_to(self, other: &T)
fn is_greater_than(self, other: &T)
fn is_greater_than_or_equal_to(self, other: &T)
impl<'s, T> ComparingOptionSpec<T> for Spec<'s, Option<T>> where T: Debug + PartialEq
[src]fn contains_value(self, expected_value: &T)
impl<'s, T> OptionSpec<T> for Spec<'s, Option<T>> where T: Debug
[src]impl<'s, T, E> ResultSpec<T, E> for Spec<'s, Result<T, E>> where T: Debug, E: Debug
[src]impl<'s> StrSpec for Spec<'s, &'s str>
[src]fn starts_with(self, expected: &str)
fn ends_with(self, expected: &str)
fn contains(self, expected: &str)
impl<'s, T> VecSpec for Spec<'s, Vec<T>>
[src]fn has_length(self, expected: usize)
impl<'s, T> ComparingVecSpec<'s, T> for Spec<'s, Vec<T>> where T: Debug + PartialEq
[src]fn contains(self, expected_value: &T)
fn mapped_contains<F, M: 's>(self, mapping_function: F, expected_value: &M) where M: Debug + PartialEq, F: Fn(&'s T) -> &M
impl<'s, S: Debug + 's> Debug for Spec<'s, S>
[src]