pub struct RefMatcher<AM>(/* private fields */);Expand description
Wraps an ArgMatcher<Arg> and implements ArgMatcher<&Arg>
instead.
Trait Implementations§
Source§impl<Arg, AM: ArgMatcher<Arg>> ArgMatcher<&Arg> for RefMatcher<AM>
impl<Arg, AM: ArgMatcher<Arg>> ArgMatcher<&Arg> for RefMatcher<AM>
Auto Trait Implementations§
impl<AM> Freeze for RefMatcher<AM>where
AM: Freeze,
impl<AM> RefUnwindSafe for RefMatcher<AM>where
AM: RefUnwindSafe,
impl<AM> Send for RefMatcher<AM>where
AM: Send,
impl<AM> Sync for RefMatcher<AM>where
AM: Sync,
impl<AM> Unpin for RefMatcher<AM>where
AM: Unpin,
impl<AM> UnwindSafe for RefMatcher<AM>where
AM: UnwindSafe,
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