pub struct DocumentArgument {
pub number: usize,
pub optional: bool,
pub used: bool,
pub tokens: Tokens,
}Expand description
An argument a DocumentCall read.
Fields§
§number: usizeits parameter’s number (#n)
optional: boolits parameter is optional
used: boolthe call’s body names it (#n), or its use is unknown (a closure’s): it is handed on; or the macro is the kernel’s,
whose drop is TeX’s own, or the binding declares it dropped by design (Expandable::dropped_by_design): no loss
tokens: Tokensthe tokens read
Trait Implementations§
Source§impl Clone for DocumentArgument
impl Clone for DocumentArgument
Auto Trait Implementations§
impl Freeze for DocumentArgument
impl RefUnwindSafe for DocumentArgument
impl Send for DocumentArgument
impl Sync for DocumentArgument
impl Unpin for DocumentArgument
impl UnsafeUnpin for DocumentArgument
impl UnwindSafe for DocumentArgument
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