[][src]Struct pui_core::dynamic::ThreadLocal

pub struct ThreadLocal;

A thread-local scalar allocator that's backed by a NonZeroU64 This allows Option<DynamicToken<ThreadLocal>> to be the same size as DynamicToken<ThreadLocal>

Implementations

impl ThreadLocal[src]

pub fn oneshot() -> Dynamic<Self>[src]

Create a new Dynamic<Self> that implements OneShotIdentifier

pub fn with_pool<P: PoolMut<Self>>(pool: P) -> Dynamic<Self, P>[src]

Create a new Dynamic<Self> with the given pool

Trait Implementations

impl ScalarAllocator for ThreadLocal[src]

type Scalar = NonZeroU64

The types in the sequence

type AutoTraits = NoSendSync

This type's autotraits restrictions that will be applied to both Dynamic and DynamicToken Read more

Auto Trait Implementations

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.