Struct attribute_derive::IdentValue
source · pub struct IdentValue<T> {
pub value: T,
pub ident: Ident,
}
Expand description
Helper struct to hold a value and the ident of its property
Fields§
§value: T
The value
ident: Ident
The ident
Trait Implementations§
source§impl<T: Debug> Debug for IdentValue<T>
impl<T: Debug> Debug for IdentValue<T>
source§impl<T: PartialEq> PartialEq<IdentValue<T>> for IdentValue<T>
impl<T: PartialEq> PartialEq<IdentValue<T>> for IdentValue<T>
source§fn eq(&self, other: &IdentValue<T>) -> bool
fn eq(&self, other: &IdentValue<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for IdentValue<T>
impl<T> StructuralEq for IdentValue<T>
impl<T> StructuralPartialEq for IdentValue<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for IdentValue<T>where T: RefUnwindSafe,
impl<T> !Send for IdentValue<T>
impl<T> !Sync for IdentValue<T>
impl<T> Unpin for IdentValue<T>where T: Unpin,
impl<T> UnwindSafe for IdentValue<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