Struct rustc_const_eval::transform::check_consts::ops::TransientCellBorrow
source · pub struct TransientCellBorrow;
Expand description
A borrow of a type that contains an UnsafeCell
somewhere. The borrow never escapes to
the final value of the constant.
Trait Implementations
sourceimpl Debug for TransientCellBorrow
impl Debug for TransientCellBorrow
sourceimpl<'tcx> NonConstOp<'tcx> for TransientCellBorrow
impl<'tcx> NonConstOp<'tcx> for TransientCellBorrow
sourcefn 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 importance(&self) -> DiagnosticImportance
fn build_error(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx, ErrorGuaranteed>
Auto Trait Implementations
impl RefUnwindSafe for TransientCellBorrow
impl Send for TransientCellBorrow
impl Sync for TransientCellBorrow
impl Unpin for TransientCellBorrow
impl UnwindSafe for TransientCellBorrow
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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