Struct maomi_tree::ForestToken
source · 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.