Enum conch_parser::token::Positional
[−]
[src]
pub enum Positional {
Zero,
One,
Two,
Three,
Four,
Five,
Six,
Seven,
Eight,
Nine,
}The inner representation of a positional parameter.
Variants
Zero$0
One$1
Two$2
Three$3
Four$4
Five$5
Six$6
Seven$7
Eight$8
Nine$9
Methods
impl Positional[src]
fn as_num(&self) -> u8
Converts a Positional as a numeric representation
fn from_num(num: u8) -> Option<Self>
Attempts to convert a number to a Positional representation
Trait Implementations
impl PartialEq for Positional[src]
fn eq(&self, __arg_0: &Positional) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Eq for Positional[src]
impl Debug for Positional[src]
impl Clone for Positional[src]
fn clone(&self) -> Positional
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more