Struct ruby_prism::SymbolNode
source · pub struct SymbolNode<'pr> { /* private fields */ }
Expand description
Represents a symbol literal or a symbol contained within a %i
list.
:foo
^^^^
%i[foo]
^^^
Implementations§
source§impl<'pr> SymbolNode<'pr>
impl<'pr> SymbolNode<'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 is_forced_utf8_encoding(&self) -> bool
pub fn is_forced_utf8_encoding(&self) -> bool
internal bytes forced the encoding to UTF-8
sourcepub fn is_forced_binary_encoding(&self) -> bool
pub fn is_forced_binary_encoding(&self) -> bool
internal bytes forced the encoding to binary
sourcepub fn is_forced_us_ascii_encoding(&self) -> bool
pub fn is_forced_us_ascii_encoding(&self) -> bool
internal bytes forced the encoding to US-ASCII
sourcepub fn opening_loc(&self) -> Option<Location<'pr>>
pub fn opening_loc(&self) -> Option<Location<'pr>>
Returns the opening_loc
param
sourcepub fn closing_loc(&self) -> Option<Location<'pr>>
pub fn closing_loc(&self) -> Option<Location<'pr>>
Returns the closing_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for SymbolNode<'pr>
impl<'pr> !Send for SymbolNode<'pr>
impl<'pr> !Sync for SymbolNode<'pr>
impl<'pr> Unpin for SymbolNode<'pr>
impl<'pr> !UnwindSafe for SymbolNode<'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