pub struct Native {
pub name: &'static str,
pub fingerprints: &'static [(usize, u64)],
pub executes: bool,
pub run: fn(&mut Engine, &[TokenList]) -> bool,
}Expand description
A native implementation of one macro definition.
Fields§
§name: &'static strThe macro’s usual name, for diagnostics and RETEX_NATIVE_DEBUG.
fingerprints: &'static [(usize, u64)]The definitions it implements: (number of tokens of parameter text, end-of-match and body; fingerprint).
executes: boolWhether it performs assignments or other non-expandable actions (else it only puts tokens back into the input, like an expandable macro).
run: fn(&mut Engine, &[TokenList]) -> boolRuns the implementation on the scanned arguments; false to let
the TeX definition run instead (with nothing changed).
Auto Trait Implementations§
impl Freeze for Native
impl RefUnwindSafe for Native
impl Send for Native
impl Sync for Native
impl Unpin for Native
impl UnsafeUnpin for Native
impl UnwindSafe for Native
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