Struct rustc_mir::transform::check_consts::qualifs::CustomEq [−][src]
pub struct CustomEq;
Expand description
A constant that cannot be used as part of a pattern in a match expression.
Trait Implementations
impl Qualif for CustomEq[src]
impl Qualif for CustomEq[src]const ANALYSIS_NAME: &'static str[src]
const ANALYSIS_NAME: &'static str[src]The name of the file used to debug the dataflow analysis that computes this qualif.
fn in_qualifs(qualifs: &ConstQualifs) -> bool[src]
fn in_qualifs(qualifs: &ConstQualifs) -> bool[src]Extracts the field of ConstQualifs that corresponds to this Qualif.
fn in_any_value_of_ty<'tcx>(cx: &ConstCx<'_, 'tcx>, ty: Ty<'tcx>) -> bool[src]
fn in_any_value_of_ty<'tcx>(cx: &ConstCx<'_, 'tcx>, ty: Ty<'tcx>) -> bool[src]Returns true if any value of the given type could possibly have this Qualif. Read more
fn in_adt_inherently<'tcx>(
cx: &ConstCx<'_, 'tcx>,
adt: &'tcx AdtDef,
substs: SubstsRef<'tcx>
) -> bool[src]
fn in_adt_inherently<'tcx>(
cx: &ConstCx<'_, 'tcx>,
adt: &'tcx AdtDef,
substs: SubstsRef<'tcx>
) -> bool[src]Returns true if this Qualif is inherent to the given struct or enum. Read more
const IS_CLEARED_ON_MOVE: bool[src]
const IS_CLEARED_ON_MOVE: bool[src]Whether this Qualif is cleared when a local is moved from.
Auto Trait Implementations
impl RefUnwindSafe for CustomEq
impl Send for CustomEq
impl Sync for CustomEq
impl Unpin for CustomEq
impl UnwindSafe for CustomEq
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]