Struct rustc_mir::hair::pattern::_match::Matrix[][src]

pub struct Matrix<'a, 'tcx: 'a>(Vec<Vec<&'a Pattern<'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<'a, 'tcx> Matrix<'a, 'tcx>
[src]

🔬 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?

🔬 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<'a, 'tcx> Debug for Matrix<'a, 'tcx>
[src]

Pretty-printer for matrices of patterns, example: ++++++++++++++++++++++++++

  • _ + [] + ++++++++++++++++++++++++++
  • true + [First] + ++++++++++++++++++++++++++
  • true + [Second(true)] + ++++++++++++++++++++++++++
  • false + [_] + ++++++++++++++++++++++++++
  • _ + [_, _, ..tail] + ++++++++++++++++++++++++++

Formats the value using the given formatter. Read more

impl<'a, 'tcx> FromIterator<Vec<&'a Pattern<'tcx>>> for Matrix<'a, 'tcx>
[src]

Creates a value from an iterator. Read more

Auto Trait Implementations

impl<'a, 'tcx> !Send for Matrix<'a, 'tcx>

impl<'a, 'tcx> !Sync for Matrix<'a, 'tcx>