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 Argument
impl Move for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnsafeUnpin for Argument
impl UnwindSafe for Argument
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