pub trait LocalKeyExt<T> {
// Required method
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.