Struct rustc_mir::hair::pattern::Pattern [−][src]
pub struct Pattern<'tcx> { pub ty: Ty<'tcx>, pub span: Span, pub kind: Box<PatternKind<'tcx>>, }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Fields
ty: Ty<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
span: Span
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
kind: Box<PatternKind<'tcx>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl<'tcx> Pattern<'tcx>
[src]
impl<'tcx> Pattern<'tcx>
fn is_wildcard(&self) -> bool
[src]
fn is_wildcard(&self) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl<'a, 'tcx> Pattern<'tcx>
[src]
impl<'a, 'tcx> Pattern<'tcx>
pub fn from_hir(
tcx: TyCtxt<'a, 'tcx, 'tcx>,
param_env_and_substs: ParamEnvAnd<'tcx, &'tcx Substs<'tcx>>,
tables: &'a TypeckTables<'tcx>,
pat: &'tcx Pat
) -> Self
[src]
pub fn from_hir(
tcx: TyCtxt<'a, 'tcx, 'tcx>,
param_env_and_substs: ParamEnvAnd<'tcx, &'tcx Substs<'tcx>>,
tables: &'a TypeckTables<'tcx>,
pat: &'tcx Pat
) -> Self
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl<'tcx> Clone for Pattern<'tcx>
[src]
impl<'tcx> Clone for Pattern<'tcx>
fn clone(&self) -> Pattern<'tcx>
[src]
fn clone(&self) -> Pattern<'tcx>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'tcx> Debug for Pattern<'tcx>
[src]
impl<'tcx> Debug for Pattern<'tcx>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'tcx> Display for Pattern<'tcx>
[src]
impl<'tcx> Display for Pattern<'tcx>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'tcx> PatternFoldable<'tcx> for Pattern<'tcx>
[src]
impl<'tcx> PatternFoldable<'tcx> for Pattern<'tcx>
fn fold_with<F: PatternFolder<'tcx>>(&self, folder: &mut F) -> Self
[src]
fn fold_with<F: PatternFolder<'tcx>>(&self, folder: &mut F) -> Self
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn super_fold_with<F: PatternFolder<'tcx>>(&self, folder: &mut F) -> Self
[src]
fn super_fold_with<F: PatternFolder<'tcx>>(&self, folder: &mut F) -> Self
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?