[−][src]Struct rustc_mir_build::thir::pattern::Pat

pub(crate) struct Pat<'tcx> {
    pub(crate) ty: Ty<'tcx>,
    pub(crate) span: Span,
    pub(crate) kind: Box<PatKind<'tcx>>,
}

Fields

ty: Ty<'tcx>span: Spankind: Box<PatKind<'tcx>>

Implementations

impl<'tcx> Pat<'tcx>[src]

pub(in thir::pattern) fn is_wildcard(
    &self
) -> bool
[src]

impl<'tcx> Pat<'tcx>[src]

pub(crate) fn wildcard_from_ty(ty: Ty<'tcx>) -> Self[src]

impl<'a, 'tcx> Pat<'tcx>[src]

pub(crate) fn from_hir(
    tcx: TyCtxt<'tcx>,
    param_env: ParamEnv<'tcx>,
    typeck_results: &'a TypeckResults<'tcx>,
    pat: &'tcx Pat<'tcx>
) -> Self
[src]

Trait Implementations

impl<'tcx> Clone for Pat<'tcx>[src]

impl<'tcx> Debug for Pat<'tcx>[src]

impl<'tcx> Display for Pat<'tcx>[src]

impl<'p, 'tcx> FromIterator<&'p Pat<'tcx>> for PatStack<'p, 'tcx>[src]

impl<'tcx> PartialEq<Pat<'tcx>> for Pat<'tcx>[src]

impl<'tcx> PatternFoldable<'tcx> for Pat<'tcx>[src]

impl<'tcx> StructuralPartialEq for Pat<'tcx>[src]

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for Pat<'tcx>

impl<'tcx> !Send for Pat<'tcx>

impl<'tcx> !Sync for Pat<'tcx>

impl<'tcx> Unpin for Pat<'tcx>

impl<'tcx> !UnwindSafe for Pat<'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.