pub struct Argument {
pub name: Option<String>,
pub pos: Pos,
pub value: Value,
}Expand description
An argument of a tuple constructor, which is either positional or given by the name of a parameter.
Fields§
§name: Option<String>The name of the parameter, or None if the argument is positional.
pos: PosThe position of the argument.
value: ValueThe value of the argument.
Trait Implementations§
impl Eq for Argument
impl StructuralPartialEq for Argument
Auto Trait Implementations§
impl Forget for Argument
impl Freeze for Argumentwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<Member>: Freeze,
PhantomData<Argument>: Freeze,
impl Move for Argument
impl RefUnwindSafe for Argument
impl Send for Argumentwhere
RawVecInner: Send,
impl Sync for Argumentwhere
RawVecInner: Sync,
impl Unpin for Argument
impl UnsafeUnpin for Argumentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<Member>: UnsafeUnpin,
PhantomData<Argument>: UnsafeUnpin,
impl UnwindSafe for Argumentwhere
RawVecInner: UnwindSafe,
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