Struct libreda_db::slab_alloc::Element
source · [−]struct Element<IdType, T> {
id: IdType,
value: Option<T>,
}
Fields
id: IdType
value: Option<T>
Trait Implementations
sourceimpl<'de, IdType, T> Deserialize<'de> for Element<IdType, T> where
IdType: Deserialize<'de>,
T: Deserialize<'de>,
impl<'de, IdType, T> Deserialize<'de> for Element<IdType, T> where
IdType: Deserialize<'de>,
T: Deserialize<'de>,
sourcefn 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
Auto Trait Implementations
impl<IdType, T> RefUnwindSafe for Element<IdType, T> where
IdType: RefUnwindSafe,
T: RefUnwindSafe,
impl<IdType, T> Send for Element<IdType, T> where
IdType: Send,
T: Send,
impl<IdType, T> Sync for Element<IdType, T> where
IdType: Sync,
T: Sync,
impl<IdType, T> Unpin for Element<IdType, T> where
IdType: Unpin,
T: Unpin,
impl<IdType, T> UnwindSafe for Element<IdType, T> where
IdType: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more