pub struct ArgSpec {
pub required: bool,
pub kind: ArgKind,
pub content: ContentKind,
pub domain: ArgumentDomain,
pub verbatim: bool,
}Expand description
One argument slot in a command/environment signature.
Fields§
§required: boolWhether the argument must be present, independently of its delimiter kind.
kind: ArgKind§content: ContentKindHow the formatter treats this argument’s content. See ContentKind.
domain: ArgumentDomainThe mode established by this positional argument, independently of
ContentKind.
verbatim: boolWhether this braced argument is read under a curated raw-text lexer mode.
Independent of formatter ContentKind and text-or-math
ArgumentDomain.
Trait Implementations§
impl Copy for ArgSpec
impl Eq for ArgSpec
impl StructuralPartialEq for ArgSpec
Auto Trait Implementations§
impl Freeze for ArgSpec
impl RefUnwindSafe for ArgSpec
impl Send for ArgSpec
impl Sync for ArgSpec
impl Unpin for ArgSpec
impl UnsafeUnpin for ArgSpec
impl UnwindSafe for ArgSpec
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