Struct rustc_pattern_analysis::MatchCtxt
source · pub struct MatchCtxt<'a, 'p, Cx: TypeCx> {
pub tycx: &'a Cx,
pub wildcard_arena: &'p TypedArena<DeconstructedPat<'p, Cx>>,
}Expand description
Context that provides information global to a match.
Fields§
§tycx: &'a CxThe context for type information.
wildcard_arena: &'p TypedArena<DeconstructedPat<'p, Cx>>An arena to store the wildcards we produce during analysis.
Trait Implementations§
impl<'a, 'p, Cx: TypeCx> Copy for MatchCtxt<'a, 'p, Cx>
Auto Trait Implementations§
impl<'a, 'p, Cx> !RefUnwindSafe for MatchCtxt<'a, 'p, Cx>
impl<'a, 'p, Cx> !Send for MatchCtxt<'a, 'p, Cx>
impl<'a, 'p, Cx> !Sync for MatchCtxt<'a, 'p, Cx>
impl<'a, 'p, Cx> Unpin for MatchCtxt<'a, 'p, Cx>
impl<'a, 'p, Cx> !UnwindSafe for MatchCtxt<'a, 'p, Cx>
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
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes