pub struct MatchCompileContext<'a, P>where
P: PatternProvider + 'a,{ /* private fields */ }
Implementations§
Source§impl<'a, P> MatchCompileContext<'a, P>where
P: PatternProvider,
impl<'a, P> MatchCompileContext<'a, P>where
P: PatternProvider,
pub fn new(pattern: &'a mut P) -> Self
pub fn root_matrix(&self) -> &MatchMatrix<P>
Trait Implementations§
Source§impl<'a, P> Debug for MatchCompileContext<'a, P>
impl<'a, P> Debug for MatchCompileContext<'a, P>
Auto Trait Implementations§
impl<'a, P> Freeze for MatchCompileContext<'a, P>
impl<'a, P> RefUnwindSafe for MatchCompileContext<'a, P>where
P: RefUnwindSafe,
<P as PatternProvider>::CfgVariable: RefUnwindSafe,
<P as PatternProvider>::PatternNodeKey: RefUnwindSafe,
<P as PatternProvider>::PatternNodeKind: RefUnwindSafe,
impl<'a, P> Send for MatchCompileContext<'a, P>where
P: Send,
<P as PatternProvider>::CfgVariable: Send,
<P as PatternProvider>::PatternNodeKey: Send,
<P as PatternProvider>::PatternNodeKind: Send,
impl<'a, P> Sync for MatchCompileContext<'a, P>where
P: Sync,
<P as PatternProvider>::CfgVariable: Sync,
<P as PatternProvider>::PatternNodeKey: Sync,
<P as PatternProvider>::PatternNodeKind: Sync,
impl<'a, P> Unpin for MatchCompileContext<'a, P>where
<P as PatternProvider>::CfgVariable: Unpin,
<P as PatternProvider>::PatternNodeKey: Unpin,
<P as PatternProvider>::PatternNodeKind: Unpin,
impl<'a, P> !UnwindSafe for MatchCompileContext<'a, P>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more