pub struct ArrPatElem {
pub pattern: Option<Pattern>,
pub default: Option<Expression>,
pub is_rest: bool,
}Expand description
配列パターンの 1 要素。
Fields§
§pattern: Option<Pattern>None は穴 [a, , b]。
default: Option<Expression>§is_rest: boolTrait Implementations§
Source§impl Clone for ArrPatElem
impl Clone for ArrPatElem
Source§fn clone(&self) -> ArrPatElem
fn clone(&self) -> ArrPatElem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArrPatElem
impl Debug for ArrPatElem
Source§impl PartialEq for ArrPatElem
impl PartialEq for ArrPatElem
Source§fn eq(&self, other: &ArrPatElem) -> bool
fn eq(&self, other: &ArrPatElem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ArrPatElem
Auto Trait Implementations§
impl Freeze for ArrPatElem
impl RefUnwindSafe for ArrPatElem
impl Send for ArrPatElem
impl Sync for ArrPatElem
impl Unpin for ArrPatElem
impl UnsafeUnpin for ArrPatElem
impl UnwindSafe for ArrPatElem
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