pub struct TemplateDecl {
pub name: Identifier,
pub fields: Vec<FieldDecl>,
pub body: Vec<TemplateBodyDecl>,
pub pos: Pos,
pub span: Span,
}Fields§
§name: Identifier§fields: Vec<FieldDecl>§body: Vec<TemplateBodyDecl>§pos: Pos§span: SpanTrait Implementations§
Source§impl Clone for TemplateDecl
impl Clone for TemplateDecl
Source§fn clone(&self) -> TemplateDecl
fn clone(&self) -> TemplateDecl
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 TemplateDecl
impl Debug for TemplateDecl
impl Eq for TemplateDecl
Source§impl PartialEq for TemplateDecl
impl PartialEq for TemplateDecl
Source§fn eq(&self, other: &TemplateDecl) -> bool
fn eq(&self, other: &TemplateDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TemplateDecl
Auto Trait Implementations§
impl Freeze for TemplateDecl
impl RefUnwindSafe for TemplateDecl
impl Send for TemplateDecl
impl Sync for TemplateDecl
impl Unpin for TemplateDecl
impl UnsafeUnpin for TemplateDecl
impl UnwindSafe for TemplateDecl
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