pub struct Template {
pub doc: Doc,
pub params: Vec<TemplateParam>,
pub decl: Box<Decl>,
pub specialisation: Vec<Type>,
}Expand description
template <..> <decl>
Fields§
§doc: DocDocumentation.
params: Vec<TemplateParam>The parameters, empty for an explicit specialisation.
decl: Box<Decl>What is templated.
specialisation: Vec<Type>The specialisation arguments, for template <> struct S<T>.
Trait Implementations§
impl Eq for Template
impl StructuralPartialEq for Template
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnsafeUnpin for Template
impl UnwindSafe for Template
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