#[repr(C)]pub struct NodeRef {
pub id: i64,
pub location: MaybeUninit<Location>,
}
Expand description
Reference to a Node
This is basically just the node’s id so you could look it up if you had them all cached. But it also contains a second field to be able to store a location, if it so happens to be known.
Fields§
§id: i64
The Node’s id
location: MaybeUninit<Location>
The Node’s location if known
Implementations§
Auto Trait Implementations§
impl Freeze for NodeRef
impl RefUnwindSafe for NodeRef
impl Send for NodeRef
impl Sync for NodeRef
impl Unpin for NodeRef
impl UnwindSafe for NodeRef
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