pub struct Expect<const N: usize> { /* private fields */ }Expand description
Self-updating string literal.
Implementations§
Source§impl<const N: usize> Expect<N>
impl<const N: usize> Expect<N>
pub fn assert_eq(&self, actual: &str)
pub fn assert_debug_eq<T>(&self, actual: T)where
T: Debug,
pub fn find_expect_location(&self, file_contents: &str) -> ExpectLocation<N>
Trait Implementations§
impl<const N: usize> Eq for Expect<N>
impl<const N: usize> StructuralPartialEq for Expect<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for Expect<N>
impl<const N: usize> RefUnwindSafe for Expect<N>
impl<const N: usize> Send for Expect<N>
impl<const N: usize> Sync for Expect<N>
impl<const N: usize> Unpin for Expect<N>
impl<const N: usize> UnwindSafe for Expect<N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more