pub struct Scripts {
pub base: Node,
pub sub: Option<Node>,
pub sup: Option<Node>,
pub precedes: bool,
}Expand description
Subscript and superscript attached to a base.
Fields§
§base: Node§sub: Option<Node>§sup: Option<Node>§precedes: boolDraws the scripts to the left of the base instead of to its right.
The slots keep the order base, subscript, superscript on both sides, so editing code addresses a pre-script the way it addresses a post-script.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Scripts
Auto Trait Implementations§
impl Forget for Scripts
impl Freeze for Scriptswhere
*const u8 is !null: Freeze,
PhantomData<Node>: Freeze,
*const TextRun is !null: Freeze,
PhantomData<TextRun>: Freeze,
*const Frac is !null: Freeze,
PhantomData<Frac>: Freeze,
*const Sqrt is !null: Freeze,
PhantomData<Sqrt>: Freeze,
*const Scripts is !null: Freeze,
PhantomData<Scripts>: Freeze,
*const Limits is !null: Freeze,
PhantomData<Limits>: Freeze,
*const Fence is !null: Freeze,
PhantomData<Fence>: Freeze,
*const Matrix is !null: Freeze,
PhantomData<Matrix>: Freeze,
*const Accent is !null: Freeze,
PhantomData<Accent>: Freeze,
*const LabeledArrow is !null: Freeze,
PhantomData<LabeledArrow>: Freeze,
*const BigOp is !null: Freeze,
PhantomData<BigOp>: Freeze,
*const Styled is !null: Freeze,
PhantomData<Styled>: Freeze,
PhantomData<u8>: Freeze,
impl Move for Scripts
impl RefUnwindSafe for Scripts
impl Send for Scripts
impl Sync for Scripts
impl Unpin for Scripts
impl UnsafeUnpin for Scriptswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Node>: UnsafeUnpin,
*const TextRun is !null: UnsafeUnpin,
PhantomData<TextRun>: UnsafeUnpin,
*const Frac is !null: UnsafeUnpin,
PhantomData<Frac>: UnsafeUnpin,
*const Sqrt is !null: UnsafeUnpin,
PhantomData<Sqrt>: UnsafeUnpin,
*const Scripts is !null: UnsafeUnpin,
PhantomData<Scripts>: UnsafeUnpin,
*const Limits is !null: UnsafeUnpin,
PhantomData<Limits>: UnsafeUnpin,
*const Fence is !null: UnsafeUnpin,
PhantomData<Fence>: UnsafeUnpin,
*const Matrix is !null: UnsafeUnpin,
PhantomData<Matrix>: UnsafeUnpin,
*const Accent is !null: UnsafeUnpin,
PhantomData<Accent>: UnsafeUnpin,
*const LabeledArrow is !null: UnsafeUnpin,
PhantomData<LabeledArrow>: UnsafeUnpin,
*const BigOp is !null: UnsafeUnpin,
PhantomData<BigOp>: UnsafeUnpin,
*const Styled is !null: UnsafeUnpin,
PhantomData<Styled>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Scriptswhere
RawVecInner: UnwindSafe,
BoxRaw<TextRun>: UnwindSafe,
BoxRaw<Frac>: UnwindSafe,
BoxRaw<Sqrt>: UnwindSafe,
BoxRaw<Scripts>: UnwindSafe,
BoxRaw<Limits>: UnwindSafe,
BoxRaw<Fence>: UnwindSafe,
BoxRaw<Matrix>: UnwindSafe,
BoxRaw<Accent>: UnwindSafe,
BoxRaw<LabeledArrow>: UnwindSafe,
BoxRaw<BigOp>: UnwindSafe,
BoxRaw<Styled>: UnwindSafe,
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