pub(crate) struct LifetimeNode {
pub(crate) lifetime: NamedLifetime,
pub(crate) shorter: Vec<usize>,
pub(crate) longer: Vec<usize>,
}
Expand description
A lifetime, along with ptrs to all lifetimes that are explicitly shorter/longer than it.
This type is internal to [LifetimeGraph
]- the ptrs are stored as usize
s,
meaning that they may be invalid if a LifetimeEdges
is created in one
LifetimeGraph
and then used in another.
Fields§
§lifetime: NamedLifetime
The name of the lifetime.
shorter: Vec<usize>
Pointers to all lifetimes that this lives at least as long as.
Note: This doesn’t account for transitivity.
longer: Vec<usize>
Pointers to all lifetimes that live at least as long as this.
Note: This doesn’t account for transitivity.
Trait Implementations§
source§impl Clone for LifetimeNode
impl Clone for LifetimeNode
source§fn clone(&self) -> LifetimeNode
fn clone(&self) -> LifetimeNode
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 LifetimeNode
impl Debug for LifetimeNode
source§impl Hash for LifetimeNode
impl Hash for LifetimeNode
source§impl PartialEq for LifetimeNode
impl PartialEq for LifetimeNode
impl Eq for LifetimeNode
impl StructuralPartialEq for LifetimeNode
Auto Trait Implementations§
impl Freeze for LifetimeNode
impl RefUnwindSafe for LifetimeNode
impl Send for LifetimeNode
impl Sync for LifetimeNode
impl Unpin for LifetimeNode
impl UnwindSafe for LifetimeNode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)