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 GetRange for Parameter
impl GetRange for Parameter
Source§fn get_range(&self) -> Result<Range, GetRangeError>
fn get_range(&self) -> Result<Range, GetRangeError>
Get the range of the node. This will only fail if
Cst.status is
AstStatus::HasErrors.Source§impl Ord for Parameter
impl Ord for Parameter
Source§impl PartialOrd for Parameter
impl PartialOrd for Parameter
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