Struct lib_ruby_parser::nodes::ArrayPattern [−][src]
#[repr(C)]pub struct ArrayPattern { pub elements: List<Node>, pub begin_l: MaybeLoc, pub end_l: MaybeLoc, pub expression_l: Loc, }
Represents an array pattern used in pattern matching
Fields
elements: List<Node>A list of elements
begin_l: MaybeLocLocation of the open bracket
[1, ^a, 3 => foo]
~
None for pattern like 1, 2 without brackets
end_l: MaybeLocLocation of the closing bracket
[1, ^a, 3 => foo]
~
None for pattern like 1, 2 without brackets
expression_l: LocLocation of the full expression
[1, ^a, 3 => foo]
~~~~~~~~~~~~~~~~~
Trait Implementations
impl Clone for ArrayPattern[src]
fn clone(&self) -> ArrayPattern[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ArrayPattern[src]
impl PartialEq<ArrayPattern> for ArrayPattern[src]
fn eq(&self, other: &ArrayPattern) -> bool[src]
fn ne(&self, other: &ArrayPattern) -> bool[src]
impl StructuralPartialEq for ArrayPattern[src]
Auto Trait Implementations
impl RefUnwindSafe for ArrayPattern
impl Send for ArrayPattern
impl Sync for ArrayPattern
impl Unpin for ArrayPattern
impl UnwindSafe for ArrayPattern
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,