Trait stack_tokens::LocalKeyExt
source · pub trait LocalKeyExt<T> {
fn borrow<'stack>(&'static self, token: &'stack StackToken) -> &'stack T;
}
Expand description
Adds StackToken
support to the standard library’s LocalKey
.
Required Methods
sourcefn borrow<'stack>(&'static self, token: &'stack StackToken) -> &'stack T
fn borrow<'stack>(&'static self, token: &'stack StackToken) -> &'stack T
Borrows the value from the TLS with a StackToken
.