pub struct IrPatternApplication {
pub pattern: String,
pub alias: String,
pub type_args: Vec<IrType>,
pub value_args: Vec<IrPatternArgument>,
pub generated: Vec<String>,
pub definition_span: SourceSpan,
pub application_span: SourceSpan,
}Fields§
§pattern: String§alias: String§type_args: Vec<IrType>§value_args: Vec<IrPatternArgument>§generated: Vec<String>§definition_span: SourceSpanSource span of the pattern <Name> { ... } DEFINITION this application
expanded, so provenance can point back at where the reused shape lives.
application_span: SourceSpanSource span of the apply <Name> as <alias> { ... } APPLICATION site.
Trait Implementations§
Source§impl Clone for IrPatternApplication
impl Clone for IrPatternApplication
Source§fn clone(&self) -> IrPatternApplication
fn clone(&self) -> IrPatternApplication
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 IrPatternApplication
impl Debug for IrPatternApplication
impl Eq for IrPatternApplication
Source§impl PartialEq for IrPatternApplication
impl PartialEq for IrPatternApplication
impl StructuralPartialEq for IrPatternApplication
Auto Trait Implementations§
impl Freeze for IrPatternApplication
impl RefUnwindSafe for IrPatternApplication
impl Send for IrPatternApplication
impl Sync for IrPatternApplication
impl Unpin for IrPatternApplication
impl UnsafeUnpin for IrPatternApplication
impl UnwindSafe for IrPatternApplication
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