pub struct DefaultValueConstructor<T> { /* private fields */ }Expand description
A value constructor that delegates to the ‘Default’ trait.
Requires that type T implements Default.
Trait Implementations§
Source§impl<T: Debug> Debug for DefaultValueConstructor<T>
impl<T: Debug> Debug for DefaultValueConstructor<T>
Source§impl<T: PartialEq> PartialEq for DefaultValueConstructor<T>
impl<T: PartialEq> PartialEq for DefaultValueConstructor<T>
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> Eq for DefaultValueConstructor<T>
impl<T> 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§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.