[−][src]Struct pui_core::dynamic::Dynamic
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]
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]
A::Scalar: Debug,
A::AutoTraits: Debug,
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
pub fn owns_token(&self, token: &Self::Token) -> bool
[src]
pub fn token(&self) -> Self::Token
[src]
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]
P: RefUnwindSafe,
<A as ScalarAllocator>::AutoTraits: RefUnwindSafe,
<A as ScalarAllocator>::Scalar: RefUnwindSafe,
impl<A, P> Send for Dynamic<A, P> where
P: Send,
<A as ScalarAllocator>::AutoTraits: Send,
<A as ScalarAllocator>::Scalar: Send,
[src]
P: Send,
<A as ScalarAllocator>::AutoTraits: Send,
<A as ScalarAllocator>::Scalar: Send,
impl<A, P> Sync for Dynamic<A, P> where
P: Sync,
<A as ScalarAllocator>::AutoTraits: Sync,
<A as ScalarAllocator>::Scalar: Sync,
[src]
P: Sync,
<A as ScalarAllocator>::AutoTraits: Sync,
<A as ScalarAllocator>::Scalar: Sync,
impl<A, P> Unpin for Dynamic<A, P> where
P: Unpin,
<A as ScalarAllocator>::AutoTraits: Unpin,
<A as ScalarAllocator>::Scalar: Unpin,
[src]
P: Unpin,
<A as ScalarAllocator>::AutoTraits: Unpin,
<A as ScalarAllocator>::Scalar: Unpin,
impl<A, P> UnwindSafe for Dynamic<A, P> where
P: UnwindSafe,
<A as ScalarAllocator>::AutoTraits: UnwindSafe,
<A as ScalarAllocator>::Scalar: UnwindSafe,
[src]
P: UnwindSafe,
<A as ScalarAllocator>::AutoTraits: UnwindSafe,
<A as ScalarAllocator>::Scalar: UnwindSafe,
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>,