pub struct HeapHandle<T: HandleEntry> { /* private fields */ }Implementations§
Source§impl<T: HandleEntry> HeapHandle<T>
impl<T: HandleEntry> HeapHandle<T>
pub fn new(id: HeapHandleId) -> Self
pub fn from_usize(id: usize) -> Self
pub fn id(&self) -> HeapHandleId
pub fn as_usize(&self) -> usize
pub fn is_valid(&self) -> bool
Trait Implementations§
Source§impl<T: Clone + HandleEntry> Clone for HeapHandle<T>
impl<T: Clone + HandleEntry> Clone for HeapHandle<T>
Source§fn clone(&self) -> HeapHandle<T>
fn clone(&self) -> HeapHandle<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug + HandleEntry> Debug for HeapHandle<T>
impl<T: Debug + HandleEntry> Debug for HeapHandle<T>
Source§impl<'de, T: HandleEntry> Deserialize<'de> for HeapHandle<T>
impl<'de, T: HandleEntry> Deserialize<'de> for HeapHandle<T>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: HandleEntry> Display for HeapHandle<T>
impl<T: HandleEntry> Display for HeapHandle<T>
Source§impl<T: HandleEntry> From<HeapHandle<T>> for usize
impl<T: HandleEntry> From<HeapHandle<T>> for usize
Source§fn from(handle: HeapHandle<T>) -> Self
fn from(handle: HeapHandle<T>) -> Self
Converts to this type from the input type.
Source§impl<T: HandleEntry> From<usize> for HeapHandle<T>
impl<T: HandleEntry> From<usize> for HeapHandle<T>
Source§impl<T: Hash + HandleEntry> Hash for HeapHandle<T>
impl<T: Hash + HandleEntry> Hash for HeapHandle<T>
Source§impl<T: PartialEq + HandleEntry> PartialEq for HeapHandle<T>
impl<T: PartialEq + HandleEntry> PartialEq for HeapHandle<T>
Source§impl<T: HandleEntry> Serialize for HeapHandle<T>
impl<T: HandleEntry> Serialize for HeapHandle<T>
impl<T: Copy + HandleEntry> Copy for HeapHandle<T>
impl<T: Eq + HandleEntry> Eq for HeapHandle<T>
impl<T: HandleEntry> StructuralPartialEq for HeapHandle<T>
Auto Trait Implementations§
impl<T> Freeze for HeapHandle<T>
impl<T> RefUnwindSafe for HeapHandle<T>where
T: RefUnwindSafe,
impl<T> Send for HeapHandle<T>
impl<T> Sync for HeapHandle<T>
impl<T> Unpin for HeapHandle<T>where
T: Unpin,
impl<T> UnwindSafe for HeapHandle<T>where
T: UnwindSafe,
Blanket Implementations§
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