pub struct NameAssoc<I, V = String> {
pub index: I,
pub value: V,
}
Expand description
A name association key-value pair.
Might also be used to represent an indirect name association.
Fields§
§index: I
§value: V
Trait Implementations§
source§impl<I: PartialEq, V: PartialEq> PartialEq for NameAssoc<I, V>
impl<I: PartialEq, V: PartialEq> PartialEq for NameAssoc<I, V>
source§impl<I, V> Visit for NameAssoc<I, V>
impl<I, V> Visit for NameAssoc<I, V>
source§fn visit_children<'a, VisitT: 'static, VisitE, VisitF: FnMut(&'a VisitT) -> Result<(), VisitE>>(
&'a self,
f: &mut VisitF
) -> Result<(), VisitError<VisitE>>
fn visit_children<'a, VisitT: 'static, VisitE, VisitF: FnMut(&'a VisitT) -> Result<(), VisitE>>( &'a self, f: &mut VisitF ) -> Result<(), VisitError<VisitE>>
Traverse the children of this value with the provided callback.
source§fn visit_children_mut<VisitT: 'static, VisitE, VisitF: FnMut(&mut VisitT) -> Result<(), VisitE>>(
&mut self,
f: &mut VisitF
) -> Result<(), VisitError<VisitE>>
fn visit_children_mut<VisitT: 'static, VisitE, VisitF: FnMut(&mut VisitT) -> Result<(), VisitE>>( &mut self, f: &mut VisitF ) -> Result<(), VisitError<VisitE>>
Traverse the children of this value mutably with the provided callback.
source§fn visit<'a, T: 'static, R: VisitResult, F: FnMut(&'a T) -> R>(
&'a self,
f: F
) -> Result<(), VisitError<R::Error>>
fn visit<'a, T: 'static, R: VisitResult, F: FnMut(&'a T) -> R>( &'a self, f: F ) -> Result<(), VisitError<R::Error>>
Traverse this value with the provided callback.
source§fn visit_mut<T: 'static, R: VisitResult, F: FnMut(&mut T) -> R>(
&mut self,
f: F
) -> Result<(), VisitError<R::Error>>
fn visit_mut<T: 'static, R: VisitResult, F: FnMut(&mut T) -> R>( &mut self, f: F ) -> Result<(), VisitError<R::Error>>
Traverse this value mutably with the provided callback.
impl<I: Eq, V: Eq> Eq for NameAssoc<I, V>
impl<I, V> StructuralEq for NameAssoc<I, V>
impl<I, V> StructuralPartialEq for NameAssoc<I, V>
Auto Trait Implementations§
impl<I, V> RefUnwindSafe for NameAssoc<I, V>where
I: RefUnwindSafe,
V: RefUnwindSafe,
impl<I, V> Send for NameAssoc<I, V>
impl<I, V> Sync for NameAssoc<I, V>
impl<I, V> Unpin for NameAssoc<I, V>
impl<I, V> UnwindSafe for NameAssoc<I, V>where
I: UnwindSafe,
V: 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