pub struct FunctionParam<'ctx> {
pub label: Option<&'ctx str>,
pub type_ref: TypeRef<'ctx>,
pub is_variadic: bool,
}Expand description
A parameter in a function type.
Fields§
§label: Option<&'ctx str>The parameter label, if any.
type_ref: TypeRef<'ctx>The type of the parameter.
is_variadic: boolWhether this is a variadic parameter (T…).
Trait Implementations§
Auto Trait Implementations§
impl<'ctx> Freeze for FunctionParam<'ctx>
impl<'ctx> RefUnwindSafe for FunctionParam<'ctx>
impl<'ctx> !Send for FunctionParam<'ctx>
impl<'ctx> !Sync for FunctionParam<'ctx>
impl<'ctx> Unpin for FunctionParam<'ctx>
impl<'ctx> UnsafeUnpin for FunctionParam<'ctx>
impl<'ctx> UnwindSafe for FunctionParam<'ctx>
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