Struct savefile::DefaultValueConstructor
source · pub struct DefaultValueConstructor<T: Default> { /* private fields */ }
Expand description
Trait Implementations§
source§impl<T: PartialEq + Default> PartialEq for DefaultValueConstructor<T>
impl<T: PartialEq + Default> PartialEq for DefaultValueConstructor<T>
source§fn eq(&self, other: &DefaultValueConstructor<T>) -> bool
fn eq(&self, other: &DefaultValueConstructor<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: Default> ValueConstructor<T> for DefaultValueConstructor<T>
impl<T: Default> ValueConstructor<T> for DefaultValueConstructor<T>
source§fn make_value() -> T
fn make_value() -> T
Create a value of type T.
This is used by the AbiRemoved trait to be able to invent
values when writing removed fields from old protocols.
impl<T: Eq + Default> Eq for DefaultValueConstructor<T>
impl<T: Default> StructuralPartialEq for DefaultValueConstructor<T>
Auto Trait Implementations§
impl<T> Freeze for DefaultValueConstructor<T>
impl<T> RefUnwindSafe for DefaultValueConstructor<T>where
T: RefUnwindSafe,
impl<T> !Send for DefaultValueConstructor<T>
impl<T> !Sync for DefaultValueConstructor<T>
impl<T> Unpin for DefaultValueConstructor<T>
impl<T> UnwindSafe for DefaultValueConstructor<T>where
T: RefUnwindSafe,
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.