pub struct EmptyRecord;Expand description
A record representing the absence of persistent module state.
EmptyRecord is used for modules that do not store any data to be
serialized or restored (e.g., modules marked with #[module(skip)]
or modules without parameters).
This record contains no fields and serializes to None.
Implementations§
Source§impl EmptyRecord
impl EmptyRecord
Trait Implementations§
Source§impl Clone for EmptyRecord
impl Clone for EmptyRecord
Source§fn clone(&self) -> EmptyRecord
fn clone(&self) -> EmptyRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmptyRecord
impl Debug for EmptyRecord
Source§impl Default for EmptyRecord
impl Default for EmptyRecord
Source§fn default() -> EmptyRecord
fn default() -> EmptyRecord
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmptyRecord
impl<'de> Deserialize<'de> for EmptyRecord
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 PartialEq for EmptyRecord
impl PartialEq for EmptyRecord
Source§fn eq(&self, other: &EmptyRecord) -> bool
fn eq(&self, other: &EmptyRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<B: Backend> Record<B> for EmptyRecord
impl<B: Backend> Record<B> for EmptyRecord
Source§type Item<S: PrecisionSettings> = EmptyRecord
type Item<S: PrecisionSettings> = EmptyRecord
Type of the item that can be serialized and deserialized.
Source§impl Serialize for EmptyRecord
impl Serialize for EmptyRecord
impl Copy for EmptyRecord
impl Eq for EmptyRecord
impl StructuralPartialEq for EmptyRecord
Auto Trait Implementations§
impl Freeze for EmptyRecord
impl RefUnwindSafe for EmptyRecord
impl Send for EmptyRecord
impl Sync for EmptyRecord
impl Unpin for EmptyRecord
impl UnsafeUnpin for EmptyRecord
impl UnwindSafe for EmptyRecord
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.