Struct tikv_jemalloc_ctl::thread::ThreadLocal[][src]

#[repr(transparent)]pub struct ThreadLocal<T>(_);

A thread-local pointer.

It is neither Sync nor Send.

Implementations

impl<T> ThreadLocal<T> where
    T: Copy
[src]

pub fn get(self) -> T[src]

Returns the current value at the pointer.

Trait Implementations

impl<T: Clone> Clone for ThreadLocal<T>[src]

impl<T: Copy> Copy for ThreadLocal<T>[src]

Auto Trait Implementations

impl<T> !Send for ThreadLocal<T>

impl<T> !Sync for ThreadLocal<T>

impl<T> Unpin for ThreadLocal<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.