Enum rustc_mir_transform::ref_prop::Value
source · enum Value<'tcx> {
Unknown,
Pointer(Place<'tcx>, bool),
}
Variants§
Unknown
Not a pointer, or we can’t know.
Pointer(Place<'tcx>, bool)
We know the value to be a pointer to this place. The boolean indicates whether the reference is mutable, subject the uniqueness rule.
Trait Implementations§
source§impl<'tcx> PartialEq<Value<'tcx>> for Value<'tcx>
impl<'tcx> PartialEq<Value<'tcx>> for Value<'tcx>
impl<'tcx> Copy for Value<'tcx>
impl<'tcx> Eq for Value<'tcx>
impl<'tcx> StructuralEq for Value<'tcx>
impl<'tcx> StructuralPartialEq for Value<'tcx>
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for Value<'tcx>
impl<'tcx> Send for Value<'tcx>
impl<'tcx> Sync for Value<'tcx>
impl<'tcx> Unpin for Value<'tcx>
impl<'tcx> !UnwindSafe for Value<'tcx>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn 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: 24 bytes
Size for each variant:
Unknown
: 0 bytesPointer
: 23 bytes