pub struct PassFail<T, E>(pub T, pub E);Expand description
Match two patterns at once.
Tuple Fields§
§0: T§1: ETrait Implementations§
Source§impl<T: MatchPattern, E: MatchPattern> MatchPattern for PassFail<T, E>
impl<T: MatchPattern, E: MatchPattern> MatchPattern for PassFail<T, E>
type MatchResult = PassFailResult<<T as MatchPattern>::MatchResult, <E as MatchPattern>::MatchResult>
fn perform_match(&self, haystack: &[u8]) -> Option<Self::MatchResult>
Auto Trait Implementations§
impl<T, E> Freeze for PassFail<T, E>
impl<T, E> RefUnwindSafe for PassFail<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for PassFail<T, E>
impl<T, E> Sync for PassFail<T, E>
impl<T, E> Unpin for PassFail<T, E>
impl<T, E> UnwindSafe for PassFail<T, E>where
T: UnwindSafe,
E: 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