Struct ruby_prism::KeywordHashNode
source · pub struct KeywordHashNode<'pr> { /* private fields */ }
Expand description
Represents a hash literal without opening and closing braces.
foo(a: b)
^^^^
Implementations§
source§impl<'pr> KeywordHashNode<'pr>
impl<'pr> KeywordHashNode<'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_symbol_keys(&self) -> bool
pub fn is_symbol_keys(&self) -> bool
a keyword hash which only has AssocNode
elements all with symbol keys, which means the elements can be treated as keyword arguments
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for KeywordHashNode<'pr>
impl<'pr> !Send for KeywordHashNode<'pr>
impl<'pr> !Sync for KeywordHashNode<'pr>
impl<'pr> Unpin for KeywordHashNode<'pr>
impl<'pr> !UnwindSafe for KeywordHashNode<'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