should 0.6.0

Postfix assertion library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub trait Expected<T: ?Sized> {
    fn value(&self) -> &T;
}

impl<T: ?Sized> Expected<T> for T {
    fn value(&self) -> &T {
        &self
    }
}

impl<T: ?Sized> Expected<T> for &T {
    fn value(&self) -> &T {
        self
    }
}