pub struct Field<T> {
pub name: &'static str,
pub value: T,
}Expand description
A named field wrapping a value.
Carries the field name as a const string for introspection by generic algorithms (e.g., Diff output can include field names).
Fields§
§name: &'static strThe field name.
value: TThe field value.
Implementations§
Trait Implementations§
impl<T: Copy> Copy for Field<T>
impl<T: Eq> Eq for Field<T>
impl<T> StructuralPartialEq for Field<T>
Auto Trait Implementations§
impl<T> Freeze for Field<T>where
T: Freeze,
impl<T> RefUnwindSafe for Field<T>where
T: RefUnwindSafe,
impl<T> Send for Field<T>where
T: Send,
impl<T> Sync for Field<T>where
T: Sync,
impl<T> Unpin for Field<T>where
T: Unpin,
impl<T> UnsafeUnpin for Field<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Field<T>where
T: 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