pub struct Parameter {
pub name: Option<String>,
pub pos: Pos,
pub ty: Type,
}Expand description
A parameter of a tuple constructor. Unnamed parameters come first and can only be bound by position.
Fields§
§name: Option<String>The name of the parameter, or None if it is unnamed.
pos: PosThe position of the parameter.
ty: TypeThe type of the parameter.
Trait Implementations§
impl Eq for Parameter
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl Forget for Parameter
impl Freeze for Parameter
impl Move for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnsafeUnpin 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