pub struct TestoptCall {
pub head: Token,
pub kernel: Token,
pub internal: Token,
}Expand description
A command with an optional argument is \@protected@testopt\cs\\cs{<default>} in LaTeX (latex.ltx:1245-1257
\@xargdef; twoopt.sty:51-55; xargs.sty:205-212, whose head is \@protected@testopt@xargs where an argument
after the first is optional). Ours reads its arguments itself, and Expandable::testopt_call makes this call, the
default its parameter’s, only once head is no longer kernel, the copy its definer saved (hyperref.sty:548-549
in a PDF string).
Fields§
§head: Token§kernel: Token§internal: Token\cs, \csname\string\cs\endcsname, which the definer defined
Implementations§
Trait Implementations§
Source§impl Clone for TestoptCall
impl Clone for TestoptCall
Auto Trait Implementations§
impl Freeze for TestoptCall
impl RefUnwindSafe for TestoptCall
impl Send for TestoptCall
impl Sync for TestoptCall
impl Unpin for TestoptCall
impl UnsafeUnpin for TestoptCall
impl UnwindSafe for TestoptCall
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