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 Parameterwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Type>: Freeze,
*const Type is !null: Freeze,
PhantomData<Field>: Freeze,
impl Move for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnsafeUnpin for Parameterwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
*const Type is !null: UnsafeUnpin,
PhantomData<Field>: UnsafeUnpin,
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