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
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 more
sourceimpl 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
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TrackedValue) -> bool
fn ne(&self, other: &TrackedValue) -> bool
This method tests for !=.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<'a, T> Captures<'a> for T where
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