pub enum ArrayIndexKind {
Push,
Current,
Specific(usize),
}Expand description
Kind of array index used in a path segment.
Variants§
Push
[] — always pushes a new element onto the array
Current
[^] — references the element most recently pushed into this array
within the current block scope. Errors if there is no such push in scope.
Specific(usize)
[n] — references a specific index, creating the element if it does not exist
Trait Implementations§
Source§impl Clone for ArrayIndexKind
impl Clone for ArrayIndexKind
Source§fn clone(&self) -> ArrayIndexKind
fn clone(&self) -> ArrayIndexKind
Returns a duplicate of the value. Read more
1.0.0 · 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 ArrayIndexKind
impl Debug for ArrayIndexKind
Source§impl Hash for ArrayIndexKind
impl Hash for ArrayIndexKind
Source§impl PartialEq for ArrayIndexKind
impl PartialEq for ArrayIndexKind
impl Copy for ArrayIndexKind
impl Eq for ArrayIndexKind
impl StructuralPartialEq for ArrayIndexKind
Auto Trait Implementations§
impl Freeze for ArrayIndexKind
impl RefUnwindSafe for ArrayIndexKind
impl Send for ArrayIndexKind
impl Sync for ArrayIndexKind
impl Unpin for ArrayIndexKind
impl UnsafeUnpin for ArrayIndexKind
impl UnwindSafe for ArrayIndexKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.