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