pub enum EnvKind {
Known(KnownEnv),
Custom(Range<usize>),
}Expand description
One of the standard LaTeX / amsmath environments mdwright knows
how to classify, or an unrecognised name.
The Custom variant carries the byte range of the name inside the
source so callers can recover the original spelling without
allocating; see super::span::MathSpan for the consumer side.
Variants§
Known(KnownEnv)
Custom(Range<usize>)
Byte range of the environment name in source. The matching
\end{name} carries the same name; we store the opening one
because it is reached first.
Implementations§
Trait Implementations§
impl Eq for EnvKind
impl StructuralPartialEq for EnvKind
Auto Trait Implementations§
impl Freeze for EnvKind
impl RefUnwindSafe for EnvKind
impl Send for EnvKind
impl Sync for EnvKind
impl Unpin for EnvKind
impl UnsafeUnpin for EnvKind
impl UnwindSafe for EnvKind
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