somen/error/expects.rs
1#[cfg(not(feature = "alloc"))]
2mod no_std;
3#[cfg(feature = "alloc")]
4mod std;
5
6#[cfg(feature = "alloc")]
7pub use self::std::{Expect, Expects};
8#[cfg(not(feature = "alloc"))]
9pub use no_std::{Expect, Expects};
10
11impl Expects {
12 /// Creates a new instance.
13 #[inline]
14 pub fn new(first: Expect) -> Self {
15 Self::from(first)
16 }
17}