pub enum Source<'a> {
}
Variants§
Root
Module(&'a Module)
Alias(&'a Alias)
Enum(&'a Enum)
Variant(&'a Variant)
Struct(&'a Struct)
Const(&'a Const)
Static(&'a Static)
Function(&'a Function)
Local(&'a Let)
Impl(&'a Impl)
Use(&'a Use)
Ty(&'a TyKind)
Implementations§
Source§impl Source<'_>
impl Source<'_>
pub fn name(&self) -> Option<Sym>
Sourcepub fn is_named_value(&self) -> bool
pub fn is_named_value(&self) -> bool
Returns true
if this Source defines a named value
Sourcepub fn is_named_type(&self) -> bool
pub fn is_named_type(&self) -> bool
Returns true
if this Source defines a named type
Sourcepub fn is_anon_type(&self) -> bool
pub fn is_anon_type(&self) -> bool
Sourcepub fn is_use_import(&self) -> bool
pub fn is_use_import(&self) -> bool
Trait Implementations§
impl<'a> Copy for Source<'a>
impl<'a> Eq for Source<'a>
impl<'a> StructuralPartialEq for Source<'a>
Auto Trait Implementations§
impl<'a> Freeze for Source<'a>
impl<'a> RefUnwindSafe for Source<'a>
impl<'a> Send for Source<'a>
impl<'a> Sync for Source<'a>
impl<'a> Unpin for Source<'a>
impl<'a> UnwindSafe for Source<'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