1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use crate::MathML;
use std::fmt::{Display, Formatter};

mod constructors;
mod display;

#[derive(Clone, Debug, PartialEq)]
pub struct MathOperator {
    operator: String,
}

/// <https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msub>
#[derive(Clone, Debug, PartialEq)]
pub struct MathSub {
    base: MathML,
    sub: MathML,
}

/// <https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msup>
#[derive(Clone, Debug, PartialEq)]
pub struct MathSup {
    base: MathML,
    sup: MathML,
}

/// <https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msubsup>
#[derive(Clone, Debug, PartialEq)]
pub struct MathSubSup {
    base: MathML,
    sub: MathML,
    sup: MathML,
}