pub struct ArrayNode<'pr> { /* private fields */ }Expand description
Represents an array literal. This can be a regular array using brackets or a special array using % like %w or %i.
[1, 2, 3]
^^^^^^^^^Implementationsยง
Sourceยงimpl<'pr> ArrayNode<'pr>
impl<'pr> ArrayNode<'pr>
Sourcepub fn is_contains_splat(&self) -> bool
pub fn is_contains_splat(&self) -> bool
if array contains splat nodes
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> !Send for ArrayNode<'pr>
impl<'pr> !Sync for ArrayNode<'pr>
impl<'pr> !UnwindSafe for ArrayNode<'pr>
impl<'pr> Freeze for ArrayNode<'pr>
impl<'pr> RefUnwindSafe for ArrayNode<'pr>
impl<'pr> Unpin for ArrayNode<'pr>
impl<'pr> UnsafeUnpin for ArrayNode<'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