enum TrackedValue {
Variable(HirId),
Temporary(HirId),
}Expand description
Identifies a value whose drop state we need to track.
Variants§
Variable(HirId)
Represents a named variable, such as a let binding, parameter, or upvar.
The HirId points to the variable’s definition site.
Temporary(HirId)
A value produced as a result of an expression.
The HirId points to the expression that returns this value.
Implementations§
source§impl TrackedValue
impl TrackedValue
fn hir_id(&self) -> HirId
fn from_place_with_projections_allowed( place_with_id: &PlaceWithHirId<'_> ) -> Self
Trait Implementations§
source§impl Clone for TrackedValue
impl Clone for TrackedValue
source§fn clone(&self) -> TrackedValue
fn clone(&self) -> TrackedValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TrackedValue
impl Debug for TrackedValue
source§impl Hash for TrackedValue
impl Hash for TrackedValue
source§impl PartialEq<TrackedValue> for TrackedValue
impl PartialEq<TrackedValue> for TrackedValue
source§fn eq(&self, other: &TrackedValue) -> bool
fn eq(&self, other: &TrackedValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<&PlaceWithHirId<'_>> for TrackedValue
impl TryFrom<&PlaceWithHirId<'_>> for TrackedValue
§type Error = TrackedValueConversionError
type Error = TrackedValueConversionError
The type returned in the event of a conversion error.
impl Copy for TrackedValue
impl Eq for TrackedValue
impl StructuralEq for TrackedValue
impl StructuralPartialEq for TrackedValue
Auto Trait Implementations§
impl RefUnwindSafe for TrackedValue
impl Send for TrackedValue
impl Sync for TrackedValue
impl Unpin for TrackedValue
impl UnwindSafe for TrackedValue
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:12 bytes
Size for each variant:
Variable: 8 bytesTemporary: 8 bytes