pub enum RawParameter {
Named {
name: String,
indices: Vec<RawWord>,
},
Positional(usize),
AllPositional,
AllPositionalJoined,
PositionalCount,
LastStatus,
}Expand description
A parameter reference before index words are parsed.
Variants§
Named
$NAME, ${NAME}, ${NAME[index]...}.
Fields
Positional(usize)
$1 .. ${N}.
AllPositional
$@.
AllPositionalJoined
$*.
PositionalCount
$#.
LastStatus
$?.
Trait Implementations§
Source§impl Clone for RawParameter
impl Clone for RawParameter
Source§fn clone(&self) -> RawParameter
fn clone(&self) -> RawParameter
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 RawParameter
impl Debug for RawParameter
impl Eq for RawParameter
Source§impl PartialEq for RawParameter
impl PartialEq for RawParameter
impl StructuralPartialEq for RawParameter
Auto Trait Implementations§
impl Freeze for RawParameter
impl RefUnwindSafe for RawParameter
impl Send for RawParameter
impl Sync for RawParameter
impl Unpin for RawParameter
impl UnsafeUnpin for RawParameter
impl UnwindSafe for RawParameter
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.