Struct thread_local_object::OccupiedEntry [] [src]

pub struct OccupiedEntry<'a, T: 'static>(_, _);

A view into a thread's slot in a ThreadLocal which is occupied.

Methods

impl<'a, T: 'static> OccupiedEntry<'a, T>
[src]

Returns a reference to the value in the entry.

Returns a mutable reference to the value in the entry.

Converts an OccupiedEntry into a mutable reference to the value in the entry with a lifetime bound of the slot itself.

Sets the value of the entry, and returns the entry's old value.

Takes the value out of the entry, and returns it.