pub enum StorageItem<T> {
Item(T),
Tombstone(u64),
}
Expand description
Enum to denote whether the item is a valid type T or if it is a tombstone place holder used to show the item T was deleted.
Variants§
Item(T)
Variant denoted a valid item of type T.
Tombstone(u64)
Marker showing that the item of type T was deleted at some point in the past with the provided version.
Trait Implementations§
source§impl<T: Clone> Clone for StorageItem<T>
impl<T: Clone> Clone for StorageItem<T>
source§fn clone(&self) -> StorageItem<T>
fn clone(&self) -> StorageItem<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> Debug for StorageItem<T>
impl<T: Debug> Debug for StorageItem<T>
source§impl<'de, T> Deserialize<'de> for StorageItem<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for StorageItem<T>where
T: Deserialize<'de>,
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> From<StorageItem<T>> for Option<T>
impl<T> From<StorageItem<T>> for Option<T>
source§fn from(val: StorageItem<T>) -> Self
fn from(val: StorageItem<T>) -> Self
Converts to this type from the input type.
source§impl<T> From<T> for StorageItem<T>
impl<T> From<T> for StorageItem<T>
source§impl<T> TryFrom<StorageItem<T>> for SerializedItem
impl<T> TryFrom<StorageItem<T>> for SerializedItem
source§impl TryInto<StorageItem<Flag>> for SerializedItem
impl TryInto<StorageItem<Flag>> for SerializedItem
source§impl TryInto<StorageItem<Segment>> for SerializedItem
impl TryInto<StorageItem<Segment>> for SerializedItem
Auto Trait Implementations§
impl<T> Freeze for StorageItem<T>where
T: Freeze,
impl<T> RefUnwindSafe for StorageItem<T>where
T: RefUnwindSafe,
impl<T> Send for StorageItem<T>where
T: Send,
impl<T> Sync for StorageItem<T>where
T: Sync,
impl<T> Unpin for StorageItem<T>where
T: Unpin,
impl<T> UnwindSafe for StorageItem<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)