Struct rustc_const_eval::transform::check_consts::ops::TransientMutBorrow
source · pub struct TransientMutBorrow(pub BorrowKind);
Tuple Fields§
§0: BorrowKind
Trait Implementations§
source§impl Debug for TransientMutBorrow
impl Debug for TransientMutBorrow
source§impl<'tcx> NonConstOp<'tcx> for TransientMutBorrow
impl<'tcx> NonConstOp<'tcx> for TransientMutBorrow
source§fn status_in_item(&self, _: &ConstCx<'_, 'tcx>) -> Status
fn status_in_item(&self, _: &ConstCx<'_, 'tcx>) -> Status
Returns an enum indicating whether this operation is allowed within the given item.
fn build_error(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx, ErrorGuaranteed>
fn importance(&self) -> DiagnosticImportance
Auto Trait Implementations§
impl RefUnwindSafe for TransientMutBorrow
impl Send for TransientMutBorrow
impl Sync for TransientMutBorrow
impl Unpin for TransientMutBorrow
impl UnwindSafe for TransientMutBorrow
Blanket Implementations§
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: 1 byte