Trait LocalKeyExt

Source
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§

Source

fn borrow<'stack>(&'static self, token: &'stack StackToken) -> &'stack T

Borrows the value from the TLS with a StackToken.

Implementations on Foreign Types§

Source§

impl<T: 'static> LocalKeyExt<T> for LocalKey<T>

Source§

fn borrow<'stack>(&'static self, token: &'stack StackToken) -> &'stack T

Implementors§