[−][src]Struct rustc_mir_build::thir::pattern::const_to_pat::ConstToPat
Fields
id: HirIdspan: Spanparam_env: ParamEnv<'tcx>saw_const_match_error: Cell<bool>saw_const_match_lint: Cell<bool>behind_reference: Cell<bool>infcx: InferCtxt<'a, 'tcx>include_lint_checks: booltreat_byte_string_as_slice: boolImplementations
impl<'a, 'tcx> ConstToPat<'a, 'tcx>[src]
pub(in thir::pattern::const_to_pat) fn new(
pat_ctxt: &PatCtxt<'_, 'tcx>,
id: HirId,
span: Span,
infcx: InferCtxt<'a, 'tcx>
) -> Self[src]
pat_ctxt: &PatCtxt<'_, 'tcx>,
id: HirId,
span: Span,
infcx: InferCtxt<'a, 'tcx>
) -> Self
pub(in thir::pattern::const_to_pat) fn tcx(
&self
) -> TyCtxt<'tcx>[src]
&self
) -> TyCtxt<'tcx>
pub(in thir::pattern::const_to_pat) fn adt_derive_msg(
&self,
adt_def: &AdtDef
) -> String[src]
&self,
adt_def: &AdtDef
) -> String
pub(in thir::pattern::const_to_pat) fn search_for_structural_match_violation(
&self,
ty: Ty<'tcx>
) -> Option<String>[src]
&self,
ty: Ty<'tcx>
) -> Option<String>
pub(in thir::pattern::const_to_pat) fn type_marked_structural(
&self,
ty: Ty<'tcx>
) -> bool[src]
&self,
ty: Ty<'tcx>
) -> bool
pub(in thir::pattern::const_to_pat) fn to_pat(
&mut self,
cv: &'tcx Const<'tcx>,
mir_structural_match_violation: bool
) -> Pat<'tcx>[src]
&mut self,
cv: &'tcx Const<'tcx>,
mir_structural_match_violation: bool
) -> Pat<'tcx>
pub(in thir::pattern::const_to_pat) fn type_may_have_partial_eq_impl(
&self,
ty: Ty<'tcx>
) -> bool[src]
&self,
ty: Ty<'tcx>
) -> bool
pub(in thir::pattern::const_to_pat) fn recur(
&self,
cv: &'tcx Const<'tcx>,
mir_structural_match_violation: bool
) -> Result<Pat<'tcx>, FallbackToConstRef>[src]
&self,
cv: &'tcx Const<'tcx>,
mir_structural_match_violation: bool
) -> Result<Pat<'tcx>, FallbackToConstRef>
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for ConstToPat<'a, 'tcx>
impl<'a, 'tcx> !Send for ConstToPat<'a, 'tcx>
impl<'a, 'tcx> !Sync for ConstToPat<'a, 'tcx>
impl<'a, 'tcx> Unpin for ConstToPat<'a, 'tcx> where
'tcx: 'a,
'tcx: 'a,
impl<'a, 'tcx> !UnwindSafe for ConstToPat<'a, '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, 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>,