Struct frunk_core::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> Clone for ValueField<Type>
impl<Type: Clone> Clone for ValueField<Type>
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> Hash for ValueField<Type>
impl<Type: Hash> Hash for ValueField<Type>
source§impl<Type: Ord> Ord for ValueField<Type>
impl<Type: Ord> Ord for ValueField<Type>
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> PartialEq for ValueField<Type>
impl<Type: PartialEq> PartialEq for ValueField<Type>
source§impl<Type: PartialOrd> PartialOrd for ValueField<Type>
impl<Type: PartialOrd> PartialOrd for ValueField<Type>
impl<Type: Copy> Copy for ValueField<Type>
impl<Type: Eq> Eq for ValueField<Type>
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
)