pub struct Metadata<'ctx> { /* private fields */ }Expand description
A Swift type metadata symbol.
Implementations§
Source§impl<'ctx> Metadata<'ctx>
impl<'ctx> Metadata<'ctx>
Sourcepub fn with_inner(raw: Node<'ctx>, inner: Symbol<'ctx>) -> Self
pub fn with_inner(raw: Node<'ctx>, inner: Symbol<'ctx>) -> Self
Create a Metadata with an inner symbol (for sibling patterns like DefaultOverride).
Sourcepub fn kind(&self) -> MetadataKind
pub fn kind(&self) -> MetadataKind
Get the kind of metadata.
Sourcepub fn metadata_type(&self) -> Option<TypeRef<'ctx>>
pub fn metadata_type(&self) -> Option<TypeRef<'ctx>>
Get the type this metadata is for.
Sourcepub fn is_accessor(&self) -> bool
pub fn is_accessor(&self) -> bool
Check if this is a metadata accessor (function that returns metadata).
Trait Implementations§
Auto Trait Implementations§
impl<'ctx> Freeze for Metadata<'ctx>
impl<'ctx> RefUnwindSafe for Metadata<'ctx>
impl<'ctx> !Send for Metadata<'ctx>
impl<'ctx> !Sync for Metadata<'ctx>
impl<'ctx> Unpin for Metadata<'ctx>
impl<'ctx> UnsafeUnpin for Metadata<'ctx>
impl<'ctx> UnwindSafe for Metadata<'ctx>
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