pub enum ContextComponent<'ctx> {
Module(&'ctx str),
Class {
name: &'ctx str,
raw: Node<'ctx>,
},
Struct {
name: &'ctx str,
raw: Node<'ctx>,
},
Enum {
name: &'ctx str,
raw: Node<'ctx>,
},
Protocol {
name: &'ctx str,
raw: Node<'ctx>,
},
Extension {
base: Box<ContextComponent<'ctx>>,
raw: Node<'ctx>,
},
TypeAlias {
name: &'ctx str,
raw: Node<'ctx>,
},
Other(Node<'ctx>),
}Expand description
A component in a symbol’s context path.
Variants§
Module(&'ctx str)
A module.
Class
A class.
Struct
A struct.
Enum
An enum.
Protocol
A protocol.
Extension
An extension of another type.
TypeAlias
A type alias.
Other(Node<'ctx>)
Other context component.
Implementations§
Source§impl<'ctx> ContextComponent<'ctx>
impl<'ctx> ContextComponent<'ctx>
Trait Implementations§
Auto Trait Implementations§
impl<'ctx> Freeze for ContextComponent<'ctx>
impl<'ctx> RefUnwindSafe for ContextComponent<'ctx>
impl<'ctx> !Send for ContextComponent<'ctx>
impl<'ctx> !Sync for ContextComponent<'ctx>
impl<'ctx> Unpin for ContextComponent<'ctx>
impl<'ctx> UnsafeUnpin for ContextComponent<'ctx>
impl<'ctx> UnwindSafe for ContextComponent<'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