pub struct Parameter {
pub name: Token,
pub colon: Option<Token>,
pub type: Option<Pointer<TypeValue>>,
}Expand description
Parameter that a function can have.
The difference between this and Name is the fact
that Parameter.name can match variadic values (...)
while Name can’t.
Fields§
§name: TokenThe actual name.
colon: Option<Token>: character.
type: Option<Pointer<TypeValue>>The type that was with this name, defined with the : type syntax.
Trait Implementations§
Source§impl Ord for Parameter
impl Ord for Parameter
Source§impl PartialOrd for Parameter
impl PartialOrd for Parameter
Source§impl Print for Parameter
impl Print for Parameter
Source§fn print_final_trivia(&self) -> String
fn print_final_trivia(&self) -> String
Prints only the very final trivia. Used for the default implementation of
Print::print, which just joins Print::print_without_final_trivia
and this function.Source§fn print_without_final_trivia(&self) -> String
fn print_without_final_trivia(&self) -> String
Prints the whole token including all surrounding trivia, excluding the
very last trailing trivia.
impl Eq for Parameter
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl !Send for Parameter
impl !Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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