pub struct Instantiation {
pub name: String,
pub params: Vec<Param>,
pub template: String,
pub args: Vec<Expr>,
}Expand description
A template instantiation (Instantiation, parser.y:368):
p = P(args);, or a parameterised p(int i) = P(i);.
Fields§
§name: StringThe instance name.
params: Vec<Param>Parameters of the instance itself; usually empty.
template: StringThe template being instantiated.
args: Vec<Expr>Arguments passed to it.
Trait Implementations§
Source§impl Clone for Instantiation
impl Clone for Instantiation
Source§fn clone(&self) -> Instantiation
fn clone(&self) -> Instantiation
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 Instantiation
impl Debug for Instantiation
Source§impl Display for Instantiation
impl Display for Instantiation
Source§impl PartialEq for Instantiation
impl PartialEq for Instantiation
Source§fn eq(&self, other: &Instantiation) -> bool
fn eq(&self, other: &Instantiation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Instantiation
Auto Trait Implementations§
impl Freeze for Instantiation
impl RefUnwindSafe for Instantiation
impl Send for Instantiation
impl Sync for Instantiation
impl Unpin for Instantiation
impl UnsafeUnpin for Instantiation
impl UnwindSafe for Instantiation
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.