Struct fyrox_core::pool::handle::AtomicHandle
source · pub struct AtomicHandle(/* private fields */);Expand description
Atomic handle.
Implementations§
source§impl AtomicHandle
impl AtomicHandle
pub fn none() -> Self
pub fn new(index: u32, generation: u32) -> Self
pub fn set(&self, index: u32, generation: u32)
pub fn set_from_handle<T>(&self, handle: Handle<T>)
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub fn index(&self) -> u32
pub fn generation(&self) -> u32
Trait Implementations§
source§impl Clone for AtomicHandle
impl Clone for AtomicHandle
source§impl Debug for AtomicHandle
impl Debug for AtomicHandle
source§impl Default for AtomicHandle
impl Default for AtomicHandle
source§impl Display for AtomicHandle
impl Display for AtomicHandle
source§impl<T> From<AtomicHandle> for Handle<T>
impl<T> From<AtomicHandle> for Handle<T>
source§fn from(atomic_handle: AtomicHandle) -> Self
fn from(atomic_handle: AtomicHandle) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for AtomicHandle
impl RefUnwindSafe for AtomicHandle
impl Send for AtomicHandle
impl Sync for AtomicHandle
impl Unpin for AtomicHandle
impl UnwindSafe for AtomicHandle
Blanket Implementations§
source§impl<T> AsyncTaskResult for T
impl<T> AsyncTaskResult for T
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> FieldValue for Twhere
T: 'static,
impl<T> FieldValue for Twhere
T: 'static,
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.