pub struct Alias<'a> {
pub span: Span,
pub id: Option<Id<'a>>,
pub name: Option<NameAnnotation<'a>>,
pub target: AliasTarget<'a>,
}Available on crate feature
component-model only.Expand description
An alias to a component item.
Fields§
§span: SpanWhere this alias was defined.
id: Option<Id<'a>>An identifier that this alias is resolved with (optionally) for name resolution.
name: Option<NameAnnotation<'a>>An optional name for this alias stored in the custom name section.
target: AliasTarget<'a>The target of this alias.
Implementations§
Trait Implementations§
Source§impl<'a> From<Alias<'a>> for ComponentField<'a>
impl<'a> From<Alias<'a>> for ComponentField<'a>
Source§impl<'a> From<Alias<'a>> for ComponentTypeDecl<'a>
impl<'a> From<Alias<'a>> for ComponentTypeDecl<'a>
Source§impl<'a> From<Alias<'a>> for InstanceTypeDecl<'a>
impl<'a> From<Alias<'a>> for InstanceTypeDecl<'a>
Source§impl<'a> From<Alias<'a>> for ModuleTypeDecl<'a>
impl<'a> From<Alias<'a>> for ModuleTypeDecl<'a>
Auto Trait Implementations§
impl<'a> Freeze for Alias<'a>
impl<'a> RefUnwindSafe for Alias<'a>
impl<'a> Send for Alias<'a>
impl<'a> Sync for Alias<'a>
impl<'a> Unpin for Alias<'a>
impl<'a> UnwindSafe for Alias<'a>
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