pub enum Parameter<T> {
At,
Star,
Pound,
Question,
Dash,
Dollar,
Bang,
Positional(u32),
Var(T),
}
Expand description
Represents reading a parameter (or variable) value, e.g. $foo
.
Generic over the representation of variable names.
Variants§
At
$@
Star
$*
Pound
$#
Question
$?
Dash
$-
Dollar
$$
Bang
$!
Positional(u32)
$0, $1, …, $9, ${100}
Var(T)
$foo
Trait Implementations§
impl<T: Eq> Eq for Parameter<T>
impl<T> StructuralPartialEq for Parameter<T>
Auto Trait Implementations§
impl<T> Freeze for Parameter<T>where
T: Freeze,
impl<T> RefUnwindSafe for Parameter<T>where
T: RefUnwindSafe,
impl<T> Send for Parameter<T>where
T: Send,
impl<T> Sync for Parameter<T>where
T: Sync,
impl<T> Unpin for Parameter<T>where
T: Unpin,
impl<T> UnwindSafe for Parameter<T>where
T: UnwindSafe,
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