Struct ruby_prism::ConstantPathNode
source · pub struct ConstantPathNode<'pr> { /* private fields */ }
Expand description
Represents accessing a constant through a path of ::
operators.
Foo::Bar
^^^^^^^^
Implementations§
source§impl<'pr> ConstantPathNode<'pr>
impl<'pr> ConstantPathNode<'pr>
sourcepub fn flags(&self) -> pm_node_flags_t
pub fn flags(&self) -> pm_node_flags_t
Returns the flags of this node.
sourcepub fn name(&self) -> Option<ConstantId<'pr>>
pub fn name(&self) -> Option<ConstantId<'pr>>
Returns the name
param
sourcepub fn delimiter_loc(&self) -> Location<'pr>
pub fn delimiter_loc(&self) -> Location<'pr>
Returns the delimiter_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for ConstantPathNode<'pr>
impl<'pr> !Send for ConstantPathNode<'pr>
impl<'pr> !Sync for ConstantPathNode<'pr>
impl<'pr> Unpin for ConstantPathNode<'pr>
impl<'pr> !UnwindSafe for ConstantPathNode<'pr>
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