Trait drone_core::token::StaticToken[][src]

pub unsafe trait StaticToken: Token + Sized + Send + 'static {
    type Target: ?Sized;
    fn get(&mut self) -> &mut Self::Target;
fn into_static(self) -> &'static mut Self::Target; }

A token for a mutable static variable.

See the module-level documentation for details.

Safety

Associated Types

type Target: ?Sized[src]

Type of the target static.

Loading content...

Required methods

fn get(&mut self) -> &mut Self::Target[src]

Borrows a mutable reference.

fn into_static(self) -> &'static mut Self::Target[src]

Converts the token into a mutable reference with 'static lifetime.

Loading content...

Implementors

Loading content...