Trait shoulda_core::Shoulda[][src]

pub trait Shoulda: Debug {
    fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool;

    fn should(&self) -> Should<'_, Self>
    where
        Self: Sized
, { ... } }

Required methods

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

Provided methods

fn should(&self) -> Should<'_, Self> where
    Self: Sized
[src]

Implementations on Foreign Types

impl<T> Shoulda for Vec<T> where
    T: Debug,
    T: Shoulda
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<T> Shoulda for VecDeque<T> where
    T: Debug,
    T: Shoulda
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<T> Shoulda for &[T] where
    T: Debug,
    T: Shoulda
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<T> Shoulda for [T] where
    T: Debug,
    T: Shoulda
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<T, K> Shoulda for HashMap<T, K> where
    T: Debug,
    T: Shoulda,
    T: Eq,
    T: Hash,
    K: Debug,
    K: Shoulda
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<T> Shoulda for HashSet<T> where
    T: Debug,
    T: Shoulda,
    T: Eq,
    T: Hash
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<T> Shoulda for Range<T> where
    T: Debug,
    T: Shoulda
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<T> Shoulda for RangeInclusive<T> where
    T: Debug,
    T: Shoulda
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for ()[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, _: &Self) -> bool[src]

impl<T> Shoulda for PhantomData<T>[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, _: &Self) -> bool[src]

impl<K> Shoulda for Option<K> where
    K: Shoulda,
    K: Debug
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<L, K> Shoulda for Result<L, K> where
    L: Shoulda,
    L: Debug,
    K: Shoulda,
    K: Debug
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<K> Shoulda for Cow<'_, K> where
    K: Shoulda,
    K: Debug,
    K: ToOwned,
    <K as ToOwned>::Owned: Debug,
    K: ?Sized
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<T> Shoulda for Box<T> where
    T: Shoulda,
    T: ?Sized
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<T> Shoulda for Cell<T> where
    T: Shoulda,
    T: ?Sized,
    T: Debug,
    T: Copy
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<T> Shoulda for RefCell<T> where
    T: Shoulda,
    T: ?Sized,
    T: Debug
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<T> Shoulda for Wrapping<T> where
    T: Shoulda,
    T: Debug
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<T> Shoulda for Rc<T> where
    T: Shoulda,
    T: ?Sized,
    T: Debug
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<T> Shoulda for Arc<T> where
    T: Shoulda,
    T: ?Sized,
    T: Debug
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for String[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for str[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for CString[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for CStr[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for OsString[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for OsStr[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for FileType[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for Permissions[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for Ipv4Addr[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for Ipv6Addr[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for SocketAddrV4[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for SocketAddrV6[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for Path[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for PathBuf[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for ThreadId[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for Duration[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for Instant[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for SystemTime[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for bool[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for u8[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for i8[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for u16[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for i16[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for u32[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for i32[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for u64[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for i64[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for u128[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for i128[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for usize[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for isize[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for NonZeroU8[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for NonZeroI8[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for NonZeroU16[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for NonZeroI16[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for NonZeroU32[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for NonZeroI32[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for NonZeroU64[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for NonZeroI64[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for NonZeroU128[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for NonZeroI128[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for NonZeroUsize[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for NonZeroIsize[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for f32[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl Shoulda for f64[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

impl<T> Shoulda for &T where
    T: Shoulda
[src]

fn test_eq<FloatDiff: FloatDiffProvider>(&self, other: &Self) -> bool[src]

Implementors