pub struct NameAnnotation<'a> {
pub name: &'a str,
}Expand description
An @name annotation in source, currently of the form @name "foo"
Fields§
§name: &'a strThe name specified for the item
Trait Implementations§
Source§impl<'a> Clone for NameAnnotation<'a>
impl<'a> Clone for NameAnnotation<'a>
Source§fn clone(&self) -> NameAnnotation<'a>
fn clone(&self) -> NameAnnotation<'a>
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<'a> Debug for NameAnnotation<'a>
impl<'a> Debug for NameAnnotation<'a>
Source§impl<'a> Parse<'a> for NameAnnotation<'a>
impl<'a> Parse<'a> for NameAnnotation<'a>
Source§impl<'a> PartialEq for NameAnnotation<'a>
impl<'a> PartialEq for NameAnnotation<'a>
impl<'a> Copy for NameAnnotation<'a>
impl<'a> Eq for NameAnnotation<'a>
impl<'a> StructuralPartialEq for NameAnnotation<'a>
Auto Trait Implementations§
impl<'a> Freeze for NameAnnotation<'a>
impl<'a> RefUnwindSafe for NameAnnotation<'a>
impl<'a> Send for NameAnnotation<'a>
impl<'a> Sync for NameAnnotation<'a>
impl<'a> Unpin for NameAnnotation<'a>
impl<'a> UnwindSafe for NameAnnotation<'a>
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.