pub struct LivePtr {
pub file_id: LiveFileId,
pub generation: LiveFileGeneration,
pub index: u32,
}Fields§
§file_id: LiveFileId§generation: LiveFileGeneration§index: u32Implementations§
Source§impl LivePtr
impl LivePtr
pub fn invalid() -> Self
pub fn is_invalid(&self) -> bool
pub fn node_index(&self) -> usize
pub fn with_index(&self, index: usize) -> Self
pub fn from_index( file_id: LiveFileId, index: usize, generation: LiveFileGeneration, ) -> Self
Trait Implementations§
impl Copy for LivePtr
impl Eq for LivePtr
Source§impl Ord for LivePtr
impl Ord for LivePtr
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for LivePtr
impl PartialOrd for LivePtr
impl StructuralPartialEq for LivePtr
Auto Trait Implementations§
impl Freeze for LivePtr
impl RefUnwindSafe for LivePtr
impl Send for LivePtr
impl Sync for LivePtr
impl Unpin for LivePtr
impl UnsafeUnpin for LivePtr
impl UnwindSafe for LivePtr
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