pub struct MetadataUsage {
pub name: String,
pub type_name: Option<String>,
pub body: AttributeBody,
}Expand description
Metadata usage: metadata name (: type)? body (BNF MetadataUsage).
Fields§
§name: String§type_name: Option<String>§body: AttributeBodyTrait Implementations§
Source§impl Clone for MetadataUsage
impl Clone for MetadataUsage
Source§fn clone(&self) -> MetadataUsage
fn clone(&self) -> MetadataUsage
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 MetadataUsage
impl Debug for MetadataUsage
impl Eq for MetadataUsage
Source§impl PartialEq for MetadataUsage
impl PartialEq for MetadataUsage
Source§fn eq(&self, other: &MetadataUsage) -> bool
fn eq(&self, other: &MetadataUsage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetadataUsage
Auto Trait Implementations§
impl Freeze for MetadataUsage
impl RefUnwindSafe for MetadataUsage
impl Send for MetadataUsage
impl Sync for MetadataUsage
impl Unpin for MetadataUsage
impl UnsafeUnpin for MetadataUsage
impl UnwindSafe for MetadataUsage
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