pub struct MaxExpansions(pub u32);Expand description
The maximum number of custom command expansions allowed in one snippet.
Names are resolved when a command is expanded, so a definition may refer to itself, directly or through other definitions, and expanding it would never end. Rather than detecting that, we simply stop after this many expansions, as LaTeX and KaTeX do.
The default is 1000, which is the same limit that KaTeX uses for its maxExpand setting.
Tuple Fields§
§0: u32Trait Implementations§
Source§impl Clone for MaxExpansions
impl Clone for MaxExpansions
Source§fn clone(&self) -> MaxExpansions
fn clone(&self) -> MaxExpansions
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 moreimpl Copy for MaxExpansions
Source§impl Debug for MaxExpansions
impl Debug for MaxExpansions
Source§impl Default for MaxExpansions
impl Default for MaxExpansions
impl Eq for MaxExpansions
Source§impl PartialEq for MaxExpansions
impl PartialEq for MaxExpansions
impl StructuralPartialEq for MaxExpansions
Auto Trait Implementations§
impl Freeze for MaxExpansions
impl RefUnwindSafe for MaxExpansions
impl Send for MaxExpansions
impl Sync for MaxExpansions
impl Unpin for MaxExpansions
impl UnsafeUnpin for MaxExpansions
impl UnwindSafe for MaxExpansions
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