pub enum SingularArgSyntax {
RequiredValue(RequiredValueSyntax, ArgSepSyntax),
RequiredRef(RequiredRefSyntax, ArgSepSyntax),
OptionalValue(OptionalValueSyntax, ArgSepSyntax),
AnyValue(AnyValueSyntax, ArgSepSyntax),
}Expand description
Syntax specification for a non-repeated argument.
Every item in this enum is composed of a struct that provides the details on the parameter and a struct that provides the details on how this parameter is separated from the next.
Variants§
RequiredValue(RequiredValueSyntax, ArgSepSyntax)
A required scalar value with the syntax details and the separator that follows.
RequiredRef(RequiredRefSyntax, ArgSepSyntax)
A required reference with the syntax details and the separator that follows.
OptionalValue(OptionalValueSyntax, ArgSepSyntax)
An optional scalar value with the syntax details and the separator that follows.
AnyValue(AnyValueSyntax, ArgSepSyntax)
A required scalar value of any type with the syntax details and the separator that follows.
Trait Implementations§
Source§impl Clone for SingularArgSyntax
impl Clone for SingularArgSyntax
Source§fn clone(&self) -> SingularArgSyntax
fn clone(&self) -> SingularArgSyntax
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SingularArgSyntax
impl Debug for SingularArgSyntax
Source§impl PartialEq for SingularArgSyntax
impl PartialEq for SingularArgSyntax
Source§fn eq(&self, other: &SingularArgSyntax) -> bool
fn eq(&self, other: &SingularArgSyntax) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SingularArgSyntax
Auto Trait Implementations§
impl Freeze for SingularArgSyntax
impl RefUnwindSafe for SingularArgSyntax
impl Send for SingularArgSyntax
impl Sync for SingularArgSyntax
impl Unpin for SingularArgSyntax
impl UnsafeUnpin for SingularArgSyntax
impl UnwindSafe for SingularArgSyntax
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