Struct ruby_prism::ConstantPathTargetNode
source · pub struct ConstantPathTargetNode<'pr> { /* private fields */ }
Expand description
Represents writing to a constant path in a context that doesn’t have an explicit value.
Foo::Foo, Bar::Bar = baz
^^^^^^^^ ^^^^^^^^
Implementations§
source§impl<'pr> ConstantPathTargetNode<'pr>
impl<'pr> ConstantPathTargetNode<'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 ConstantPathTargetNode<'pr>
impl<'pr> !Send for ConstantPathTargetNode<'pr>
impl<'pr> !Sync for ConstantPathTargetNode<'pr>
impl<'pr> Unpin for ConstantPathTargetNode<'pr>
impl<'pr> !UnwindSafe for ConstantPathTargetNode<'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