pub enum ParameterTypeName {
Normal(Name),
Type(TypeValue),
}Expand description
Parameters of a TypeValue::Function.
Variants§
Normal(Name)
A normal name: type syntax.
Type(TypeValue)
A type only, in this case, the name is just anonymous.
Trait Implementations§
Source§impl Clone for ParameterTypeName
impl Clone for ParameterTypeName
Source§fn clone(&self) -> ParameterTypeName
fn clone(&self) -> ParameterTypeName
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 ParameterTypeName
impl Debug for ParameterTypeName
Source§impl GetRange for ParameterTypeName
impl GetRange for ParameterTypeName
Source§impl Hash for ParameterTypeName
impl Hash for ParameterTypeName
Source§impl Ord for ParameterTypeName
impl Ord for ParameterTypeName
Source§fn cmp(&self, other: &ParameterTypeName) -> Ordering
fn cmp(&self, other: &ParameterTypeName) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl Parse for ParameterTypeName
impl Parse for ParameterTypeName
Source§impl PartialEq for ParameterTypeName
impl PartialEq for ParameterTypeName
Source§impl PartialOrd for ParameterTypeName
impl PartialOrd for ParameterTypeName
Source§impl Print for ParameterTypeName
impl Print for ParameterTypeName
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.
Source§impl TryParse for ParameterTypeName
impl TryParse for ParameterTypeName
impl Eq for ParameterTypeName
impl StructuralPartialEq for ParameterTypeName
Auto Trait Implementations§
impl Freeze for ParameterTypeName
impl RefUnwindSafe for ParameterTypeName
impl !Send for ParameterTypeName
impl !Sync for ParameterTypeName
impl Unpin for ParameterTypeName
impl UnwindSafe for ParameterTypeName
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