pub struct Alias<'a> {
pub span: Span,
pub id: Option<Id<'a>>,
pub name: Option<NameAnnotation<'a>>,
pub target: AliasTarget<'a>,
}
Expand description
An alias to a component item.
Fields
span: Span
Where 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
sourceimpl<'a> From<Alias<'a>> for ComponentField<'a>
impl<'a> From<Alias<'a>> for ComponentField<'a>
sourceimpl<'a> From<Alias<'a>> for ModuleTypeDecl<'a>
impl<'a> From<Alias<'a>> for ModuleTypeDecl<'a>
sourceimpl<'a> From<Alias<'a>> for ComponentTypeDecl<'a>
impl<'a> From<Alias<'a>> for ComponentTypeDecl<'a>
sourceimpl<'a> From<Alias<'a>> for InstanceTypeDecl<'a>
impl<'a> From<Alias<'a>> for InstanceTypeDecl<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more