[−][src]Struct pui_core::dynamic::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
pub fn alloc() -> Self::Scalar
[src]
Auto Trait Implementations
impl RefUnwindSafe for ThreadLocal
[src]
impl Send for ThreadLocal
[src]
impl Sync for ThreadLocal
[src]
impl Unpin for ThreadLocal
[src]
impl UnwindSafe for ThreadLocal
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,