[−][src]Struct rustc_mir_build::thir::pattern::Pat
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]
&self
) -> bool
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]
tcx: TyCtxt<'tcx>,
param_env: ParamEnv<'tcx>,
typeck_results: &'a TypeckResults<'tcx>,
pat: &'tcx Pat<'tcx>
) -> Self
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]
pub fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = &'p Pat<'tcx>>, [src]
T: IntoIterator<Item = &'p Pat<'tcx>>,
impl<'tcx> PartialEq<Pat<'tcx>> for Pat<'tcx>[src]
impl<'tcx> PatternFoldable<'tcx> for Pat<'tcx>[src]
pub(crate) fn fold_with<F: PatternFolder<'tcx>>(&self, folder: &mut F) -> Self[src]
pub(crate) fn super_fold_with<F: PatternFolder<'tcx>>(
&self,
folder: &mut F
) -> Self[src]
&self,
folder: &mut F
) -> Self
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]
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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>,