[][src]Struct pui_core::dynamic::Dynamic

pub struct Dynamic<A: ScalarAllocator = Global, P: PoolMut<A> = ()> { /* fields omitted */ }

A dynamically created type that is guarnteed to be unique on the given thread and if A::AutoTraits: Send + Sync on the given process.

Dynamic implements OneShotIdentifier if P == (), i.e. there is no pool

Implementations

impl Dynamic[src]

pub fn create() -> Self[src]

Create a new Dynamic using the Global ScalarAllocator

impl<P: PoolMut<Global>> Dynamic<Global, P>[src]

pub fn with_pool(pool: P) -> Self[src]

Create a new Dynamic using the Global ScalarAllocator and the given pool

impl<A: ScalarAllocator> Dynamic<A>[src]

pub fn with_alloc() -> Self[src]

Create a new Dynamic using the given ScalarAllocator

impl<A: ScalarAllocator, P: PoolMut<A>> Dynamic<A, P>[src]

pub fn with_alloc_and_pool(mut pool: P) -> Self[src]

Create a new Dynamic using the given ScalarAllocator and pool

impl<A: ScalarAllocator, P: PoolMut<A>> Dynamic<A, P>[src]

pub fn owns_token(&self, token: &DynamicToken<A>) -> bool[src]

Checks if self created the given DynamicToken

pub fn token(&self) -> DynamicToken<A>[src]

Creates a DynamicToken

Trait Implementations

impl<A: Debug + ScalarAllocator, P: Debug + PoolMut<A>> Debug for Dynamic<A, P> where
    A::Scalar: Debug,
    A::AutoTraits: Debug
[src]

impl<A: ScalarAllocator, P: PoolMut<A>> Drop for Dynamic<A, P>[src]

impl<A: ScalarAllocator, P: PoolMut<A>> Identifier for Dynamic<A, P>[src]

type Token = DynamicToken<A>

The tokens that this Identifier generates

impl<A: ScalarAllocator> OneShotIdentifier for Dynamic<A>[src]

Auto Trait Implementations

impl<A, P> RefUnwindSafe for Dynamic<A, P> where
    P: RefUnwindSafe,
    <A as ScalarAllocator>::AutoTraits: RefUnwindSafe,
    <A as ScalarAllocator>::Scalar: RefUnwindSafe
[src]

impl<A, P> Send for Dynamic<A, P> where
    P: Send,
    <A as ScalarAllocator>::AutoTraits: Send,
    <A as ScalarAllocator>::Scalar: Send
[src]

impl<A, P> Sync for Dynamic<A, P> where
    P: Sync,
    <A as ScalarAllocator>::AutoTraits: Sync,
    <A as ScalarAllocator>::Scalar: Sync
[src]

impl<A, P> Unpin for Dynamic<A, P> where
    P: Unpin,
    <A as ScalarAllocator>::AutoTraits: Unpin,
    <A as ScalarAllocator>::Scalar: Unpin
[src]

impl<A, P> UnwindSafe for Dynamic<A, P> where
    P: UnwindSafe,
    <A as ScalarAllocator>::AutoTraits: UnwindSafe,
    <A as ScalarAllocator>::Scalar: UnwindSafe
[src]

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.