pub enum ScriptType {
Subscript,
Superscript,
SubSuperscript,
}
Expand description
Logical type of the script. This is used to determine how to render the scripts.
Things like subscripts, underscripts, and movable scripts can be represented when using this
enum
in conjunction with the ScriptPosition
enum
.
Variants§
Subscript
The 2 following elements are the base and and the subscript
Superscript
The 2 following elements are the base and and the superscript
SubSuperscript
The 3 following elements are the base, subscript and superscript
Trait Implementations§
Source§impl Clone for ScriptType
impl Clone for ScriptType
Source§fn clone(&self) -> ScriptType
fn clone(&self) -> ScriptType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ScriptType
impl Debug for ScriptType
Source§impl PartialEq for ScriptType
impl PartialEq for ScriptType
impl Copy for ScriptType
impl StructuralPartialEq for ScriptType
Auto Trait Implementations§
impl Freeze for ScriptType
impl RefUnwindSafe for ScriptType
impl Send for ScriptType
impl Sync for ScriptType
impl Unpin for ScriptType
impl UnwindSafe for ScriptType
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