#[non_exhaustive]pub enum FragmentKind {
MathInline,
MathDisplay,
Text,
}Expand description
Classifies the mode in which a fragment was typeset.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MathInline
Inline math, typeset in text style.
MathDisplay
Display math, typeset centered on its own line.
Text
Paragraph text mode.
Trait Implementations§
Source§impl Clone for FragmentKind
impl Clone for FragmentKind
Source§fn clone(&self) -> FragmentKind
fn clone(&self) -> FragmentKind
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 FragmentKind
Source§impl Debug for FragmentKind
impl Debug for FragmentKind
Source§impl Default for FragmentKind
impl Default for FragmentKind
Source§fn default() -> FragmentKind
fn default() -> FragmentKind
Returns the “default value” for a type. Read more
impl Eq for FragmentKind
Source§impl PartialEq for FragmentKind
impl PartialEq for FragmentKind
Source§fn eq(&self, other: &FragmentKind) -> bool
fn eq(&self, other: &FragmentKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FragmentKind
Auto Trait Implementations§
impl Freeze for FragmentKind
impl RefUnwindSafe for FragmentKind
impl Send for FragmentKind
impl Sync for FragmentKind
impl Unpin for FragmentKind
impl UnsafeUnpin for FragmentKind
impl UnwindSafe for FragmentKind
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