Struct rustc_const_eval::transform::check_consts::ops::ty::TraitBoundNotConst
source · [−]pub struct TraitBoundNotConst;Expand description
A trait bound with the ?const Trait opt-out
Trait Implementations
sourceimpl Debug for TraitBoundNotConst
impl Debug for TraitBoundNotConst
sourceimpl NonConstOp for TraitBoundNotConst
impl NonConstOp for TraitBoundNotConst
sourcefn status_in_item(&self, _: &ConstCx<'_, '_>) -> Status
fn status_in_item(&self, _: &ConstCx<'_, '_>) -> Status
Returns an enum indicating whether this operation is allowed within the given item.
fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
fn importance(&self) -> DiagnosticImportance
Auto Trait Implementations
impl RefUnwindSafe for TraitBoundNotConst
impl Send for TraitBoundNotConst
impl Sync for TraitBoundNotConst
impl Unpin for TraitBoundNotConst
impl UnwindSafe for TraitBoundNotConst
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes