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
sourceimpl TrackedValue
impl TrackedValue
fn hir_id(&self) -> HirId
fn from_place_with_projections_allowed(
place_with_id: &PlaceWithHirId<'_>
) -> Self
Trait Implementations
sourceimpl Clone for TrackedValue
impl Clone for TrackedValue
sourcefn clone(&self) -> TrackedValue
fn clone(&self) -> TrackedValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TrackedValue
impl Debug for TrackedValue
sourceimpl Hash for TrackedValue
impl Hash for TrackedValue
sourceimpl PartialEq<TrackedValue> for TrackedValue
impl PartialEq<TrackedValue> for TrackedValue
sourcefn eq(&self, other: &TrackedValue) -> bool
fn eq(&self, other: &TrackedValue) -> bool
sourceimpl 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.
sourcefn try_from(place_with_id: &PlaceWithHirId<'_>) -> Result<Self, Self::Error>
fn try_from(place_with_id: &PlaceWithHirId<'_>) -> Result<Self, Self::Error>
Performs the conversion.
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
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
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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