pub struct ForestToken { /* private fields */ }
Expand description
A static ref to a ForestNodeRc<T>
.
Implementations§
Source§impl ForestToken
impl ForestToken
Sourcepub fn stable_addr(&self) -> ForestTokenAddr
pub fn stable_addr(&self) -> ForestTokenAddr
Get the stable memory address (which can be used as hash key).
Sourcepub unsafe fn unsafe_resolve_token<'b, T>(&'b self) -> Option<ForestNodeRc<T>>
pub unsafe fn unsafe_resolve_token<'b, T>(&'b self) -> Option<ForestNodeRc<T>>
Resolve a token to a ForestNodeRc
.
It is unsafe if the T
is not matched with the node which generates this token.
Trait Implementations§
Source§impl Clone for ForestToken
impl Clone for ForestToken
Source§impl Debug for ForestToken
impl Debug for ForestToken
Auto Trait Implementations§
impl Freeze for ForestToken
impl RefUnwindSafe for ForestToken
impl !Send for ForestToken
impl !Sync for ForestToken
impl Unpin for ForestToken
impl UnwindSafe for ForestToken
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