Trait drone_core::token::StaticToken [−][src]
A token for a mutable static variable.
See the module-level documentation for details.
Safety
- The type must not implement
Sync
. - The target static must not be used anywhere else.
Associated Types
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.