pub trait RefCellLocalKeyExt<T> {
// Required methods
fn as_ref<'stack>(
&'static self,
token: &'stack StackToken,
) -> Ref<'stack, T>;
fn as_mut<'stack>(
&'static self,
token: &'stack StackToken,
) -> RefMut<'stack, T>;
}
Expand description
Required Methods§
Sourcefn as_ref<'stack>(&'static self, token: &'stack StackToken) -> Ref<'stack, T>
fn as_ref<'stack>(&'static self, token: &'stack StackToken) -> Ref<'stack, T>
Acquires a reference to the contained value.
Sourcefn as_mut<'stack>(&'static self, token: &'stack StackToken) -> RefMut<'stack, T>
fn as_mut<'stack>(&'static self, token: &'stack StackToken) -> RefMut<'stack, T>
Acquires a mutable reference to the contained value.