Struct frunk::labelled::ValueField
source · pub struct ValueField<Type> {
pub name: &'static str,
pub value: Type,
}
Expand description
A version of Field that doesn’t have a type-level label, just a value-level one
Fields§
§name: &'static str
§value: Type
Trait Implementations§
source§impl<Type> Clone for ValueField<Type>where
Type: Clone,
impl<Type> Clone for ValueField<Type>where
Type: Clone,
source§fn clone(&self) -> ValueField<Type>
fn clone(&self) -> ValueField<Type>
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<Type> Debug for ValueField<Type>where
Type: Debug,
impl<Type> Debug for ValueField<Type>where
Type: Debug,
source§impl<Type> Hash for ValueField<Type>where
Type: Hash,
impl<Type> Hash for ValueField<Type>where
Type: Hash,
source§impl<Type> Ord for ValueField<Type>where
Type: Ord,
impl<Type> Ord for ValueField<Type>where
Type: Ord,
source§fn cmp(&self, other: &ValueField<Type>) -> Ordering
fn cmp(&self, other: &ValueField<Type>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<Type> PartialEq for ValueField<Type>where
Type: PartialEq,
impl<Type> PartialEq for ValueField<Type>where
Type: PartialEq,
source§impl<Type> PartialOrd for ValueField<Type>where
Type: PartialOrd,
impl<Type> PartialOrd for ValueField<Type>where
Type: PartialOrd,
impl<Type> Copy for ValueField<Type>where
Type: Copy,
impl<Type> Eq for ValueField<Type>where
Type: Eq,
impl<Type> StructuralPartialEq for ValueField<Type>
Auto Trait Implementations§
impl<Type> Freeze for ValueField<Type>where
Type: Freeze,
impl<Type> RefUnwindSafe for ValueField<Type>where
Type: RefUnwindSafe,
impl<Type> Send for ValueField<Type>where
Type: Send,
impl<Type> Sync for ValueField<Type>where
Type: Sync,
impl<Type> Unpin for ValueField<Type>where
Type: Unpin,
impl<Type> UnwindSafe for ValueField<Type>where
Type: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)