[−][src]Struct rustc_mir_build::build::matches::Candidate
Fields
span: SpanSpan of the original pattern that gave rise to this candidate
has_guard: boolThis Candidate has a guard.
match_pairs: SmallVec<[MatchPair<'pat, 'tcx>; 1]>All of these must be satisfied...
bindings: Vec<Binding<'tcx>>...these bindings established...
ascriptions: Vec<Ascription<'tcx>>...and these types asserted...
subcandidates: Vec<Candidate<'pat, 'tcx>>... and if this is non-empty, one of these subcandidates also has to match ...
otherwise_block: Option<BasicBlock>...and the guard must be evaluated, if false branch to Block...
pre_binding_block: Option<BasicBlock>...and the blocks for add false edges between candidates
next_candidate_pre_binding_block: Option<BasicBlock>Implementations
impl<'tcx, 'pat> Candidate<'pat, 'tcx>[src]
pub(in build::matches) fn new(
place: Place<'tcx>,
pattern: &'pat Pat<'tcx>,
has_guard: bool
) -> Self[src]
place: Place<'tcx>,
pattern: &'pat Pat<'tcx>,
has_guard: bool
) -> Self
pub(in build::matches) fn visit_leaves<'a>(
&'a mut self,
visit_leaf: impl FnMut(&'a mut Self)
)[src]
&'a mut self,
visit_leaf: impl FnMut(&'a mut Self)
)
Visit the leaf candidates (those with no subcandidates) contained in this candidate.
Trait Implementations
Auto Trait Implementations
impl<'pat, 'tcx> !RefUnwindSafe for Candidate<'pat, 'tcx>
impl<'pat, 'tcx> !Send for Candidate<'pat, 'tcx>
impl<'pat, 'tcx> !Sync for Candidate<'pat, 'tcx>
impl<'pat, 'tcx> Unpin for Candidate<'pat, 'tcx> where
'tcx: 'pat,
'tcx: 'pat,
impl<'pat, 'tcx> !UnwindSafe for Candidate<'pat, 'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,