pub struct ElementValuePair {
pub key: Ident,
pub eq_span: Span,
pub value: ElementValue,
}Expand description
A key-value pair in a normal annotation.
Fields§
§key: Ident§eq_span: Span§value: ElementValueTrait Implementations§
Source§impl Clone for ElementValuePair
impl Clone for ElementValuePair
Source§fn clone(&self) -> ElementValuePair
fn clone(&self) -> ElementValuePair
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElementValuePair
impl Debug for ElementValuePair
Source§impl Hash for ElementValuePair
impl Hash for ElementValuePair
Source§impl PartialEq for ElementValuePair
impl PartialEq for ElementValuePair
Source§fn eq(&self, other: &ElementValuePair) -> bool
fn eq(&self, other: &ElementValuePair) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ElementValuePair
impl StructuralPartialEq for ElementValuePair
Auto Trait Implementations§
impl Freeze for ElementValuePair
impl RefUnwindSafe for ElementValuePair
impl Send for ElementValuePair
impl Sync for ElementValuePair
impl Unpin for ElementValuePair
impl UnsafeUnpin for ElementValuePair
impl UnwindSafe for ElementValuePair
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