pub struct MetadataKeywordUsage {
pub keyword: String,
pub type_name: Option<String>,
pub body: ConnectBody,
pub keyword_span: Span,
pub type_span: Option<Span>,
}Expand description
User-defined metadata keyword usage: #keyword (: Type)? body.
Fields§
§keyword: String§type_name: Option<String>§body: ConnectBody§keyword_span: Span§type_span: Option<Span>Trait Implementations§
Source§impl Clone for MetadataKeywordUsage
impl Clone for MetadataKeywordUsage
Source§fn clone(&self) -> MetadataKeywordUsage
fn clone(&self) -> MetadataKeywordUsage
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 MetadataKeywordUsage
impl Debug for MetadataKeywordUsage
impl Eq for MetadataKeywordUsage
Source§impl PartialEq for MetadataKeywordUsage
impl PartialEq for MetadataKeywordUsage
Source§fn eq(&self, other: &MetadataKeywordUsage) -> bool
fn eq(&self, other: &MetadataKeywordUsage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetadataKeywordUsage
Auto Trait Implementations§
impl Freeze for MetadataKeywordUsage
impl RefUnwindSafe for MetadataKeywordUsage
impl Send for MetadataKeywordUsage
impl Sync for MetadataKeywordUsage
impl Unpin for MetadataKeywordUsage
impl UnsafeUnpin for MetadataKeywordUsage
impl UnwindSafe for MetadataKeywordUsage
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