pub struct Parameter<'src> {
pub default: Option<Expression<'src>>,
pub export: bool,
pub kind: ParameterKind,
pub name: Name<'src>,
}
Expand description
A single function parameter
Fieldsยง
ยงdefault: Option<Expression<'src>>
An optional default expression
export: bool
Export parameter as environment variable
kind: ParameterKind
The kind of parameter
name: Name<'src>
The parameter name
Trait Implementationsยง
Sourceยงimpl<'src> ColorDisplay for Parameter<'src>
impl<'src> ColorDisplay for Parameter<'src>
impl<'src> StructuralPartialEq for Parameter<'src>
Auto Trait Implementationsยง
impl<'src> Freeze for Parameter<'src>
impl<'src> RefUnwindSafe for Parameter<'src>
impl<'src> Send for Parameter<'src>
impl<'src> Sync for Parameter<'src>
impl<'src> Unpin for Parameter<'src>
impl<'src> UnwindSafe for Parameter<'src>
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