pub struct CstNodeMap<'ast> { /* private fields */ }Implementations§
Source§impl<'ast> CstNodeMap<'ast>
impl<'ast> CstNodeMap<'ast>
pub fn is_empty(&self) -> bool
pub fn get_block(&self, block: Block<'_>) -> Option<&CstNode<'ast>>
pub fn get_statement(&self, statement: Statement<'_>) -> Option<&CstNode<'ast>>
pub fn get_expression( &self, expression: Expression<'_>, ) -> Option<&CstNode<'ast>>
pub fn get_function(&self, function: &Function<'_>) -> Option<&CstNode<'ast>>
pub fn get_attribute(&self, attribute: &Attribute<'_>) -> Option<&CstNode<'ast>>
pub fn get_type(&self, annotation: Type<'_>) -> Option<&CstNode<'ast>>
pub fn get_type_pack(&self, annotation: TypePack<'_>) -> Option<&CstNode<'ast>>
pub fn get_generic_type( &self, generic: &GenericType<'_>, ) -> Option<&CstNode<'ast>>
pub fn get_generic_type_pack( &self, generic: &GenericTypePack<'_>, ) -> Option<&CstNode<'ast>>
Trait Implementations§
Source§impl<'ast> Clone for CstNodeMap<'ast>
impl<'ast> Clone for CstNodeMap<'ast>
Source§fn clone(&self) -> CstNodeMap<'ast>
fn clone(&self) -> CstNodeMap<'ast>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'ast> Debug for CstNodeMap<'ast>
impl<'ast> Debug for CstNodeMap<'ast>
Source§impl Default for CstNodeMap<'_>
impl Default for CstNodeMap<'_>
Auto Trait Implementations§
impl<'ast> Freeze for CstNodeMap<'ast>
impl<'ast> RefUnwindSafe for CstNodeMap<'ast>
impl<'ast> Send for CstNodeMap<'ast>
impl<'ast> Sync for CstNodeMap<'ast>
impl<'ast> Unpin for CstNodeMap<'ast>
impl<'ast> UnsafeUnpin for CstNodeMap<'ast>
impl<'ast> UnwindSafe for CstNodeMap<'ast>
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