Enum grin_core::ser::SerializationMode
source · pub enum SerializationMode {
Full,
Hash,
}
Expand description
Signal to a serializable object how much of its data should be serialized
Variants§
Full
Serialize everything sufficiently to fully reconstruct the object
Hash
Serialize the data that defines the object
Implementations§
source§impl SerializationMode
impl SerializationMode
sourcepub fn is_hash_mode(&self) -> bool
pub fn is_hash_mode(&self) -> bool
Hash mode?
Trait Implementations§
source§impl Clone for SerializationMode
impl Clone for SerializationMode
source§fn clone(&self) -> SerializationMode
fn clone(&self) -> SerializationMode
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 PartialEq for SerializationMode
impl PartialEq for SerializationMode
source§fn eq(&self, other: &SerializationMode) -> bool
fn eq(&self, other: &SerializationMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SerializationMode
impl Eq for SerializationMode
impl StructuralPartialEq for SerializationMode
Auto Trait Implementations§
impl Freeze for SerializationMode
impl RefUnwindSafe for SerializationMode
impl Send for SerializationMode
impl Sync for SerializationMode
impl Unpin for SerializationMode
impl UnwindSafe for SerializationMode
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<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.