pub trait Deleteable: Sized + DatabaseEntry {
// Required method
fn delete<E>(
&self,
) -> Result<(Self, CompareAndSwapTransaction<Self::EntryDb>), CustomTransactionError<E>>;
}Required Methods§
Sourcefn delete<E>(
&self,
) -> Result<(Self, CompareAndSwapTransaction<Self::EntryDb>), CustomTransactionError<E>>
fn delete<E>( &self, ) -> Result<(Self, CompareAndSwapTransaction<Self::EntryDb>), CustomTransactionError<E>>
Deletes self from the database
This function should unlink references that point to self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.