Change fields' visibilities to pub

* Change
  * Some structs' fields' visibilities are changed
    from `pub(crate)` to `pub`
pull/14/head
gemmaro 2 years ago
parent e15efdfbd3
commit 90a1f9b131

@ -18,16 +18,16 @@ pub enum Literal {
#[derive(Debug, Clone, PartialOrd, PartialEq)] #[derive(Debug, Clone, PartialOrd, PartialEq)]
pub struct PlainText { pub struct PlainText {
pub(crate) text: String, pub text: String,
pub(crate) formatting: Option<FontCommand>, pub formatting: Option<FontCommand>,
} }
#[derive(Debug, Clone, PartialOrd, PartialEq)] #[derive(Debug, Clone, PartialOrd, PartialEq)]
pub struct Symbol { pub struct Symbol {
pub(crate) symbol: String, pub symbol: String,
} }
#[derive(Debug, Clone, PartialOrd, PartialEq)] #[derive(Debug, Clone, PartialOrd, PartialEq)]
pub struct Number { pub struct Number {
pub(crate) number: String, pub number: String,
} }

@ -33,43 +33,43 @@ pub struct Prod {
#[derive(Debug, Clone, PartialOrd, PartialEq)] #[derive(Debug, Clone, PartialOrd, PartialEq)]
pub struct Frac { pub struct Frac {
pub(crate) top: Box<Element>, pub top: Box<Element>,
pub(crate) bottom: Box<Element>, pub bottom: Box<Element>,
} }
#[derive(Debug, Clone, PartialOrd, PartialEq)] #[derive(Debug, Clone, PartialOrd, PartialEq)]
pub struct Pow { pub struct Pow {
pub(crate) base: Box<Element>, pub base: Box<Element>,
pub(crate) exp: Box<Element>, pub exp: Box<Element>,
} }
#[derive(Debug, Clone, PartialOrd, PartialEq)] #[derive(Debug, Clone, PartialOrd, PartialEq)]
pub struct Sub { pub struct Sub {
pub(crate) base: Box<Element>, pub base: Box<Element>,
pub(crate) lower: Box<Element>, pub lower: Box<Element>,
} }
#[derive(Debug, Clone, PartialOrd, PartialEq)] #[derive(Debug, Clone, PartialOrd, PartialEq)]
pub struct Sqrt { pub struct Sqrt {
pub(crate) inner: Box<Element>, pub inner: Box<Element>,
} }
#[derive(Debug, Clone, PartialOrd, PartialEq)] #[derive(Debug, Clone, PartialOrd, PartialEq)]
pub struct Root { pub struct Root {
pub(crate) base: Box<Element>, pub base: Box<Element>,
pub(crate) inner: Box<Element>, pub inner: Box<Element>,
} }
#[derive(Debug, Clone, PartialOrd, PartialEq)] #[derive(Debug, Clone, PartialOrd, PartialEq)]
pub struct Integral { pub struct Integral {
pub(crate) top: Option<Box<Element>>, pub top: Option<Box<Element>>,
pub(crate) bottom: Option<Box<Element>>, pub bottom: Option<Box<Element>>,
} }
#[derive(Debug, Clone, PartialOrd, PartialEq)] #[derive(Debug, Clone, PartialOrd, PartialEq)]
pub struct OIntegral { pub struct OIntegral {
pub(crate) top: Option<Box<Element>>, pub top: Option<Box<Element>>,
pub(crate) bottom: Option<Box<Element>>, pub bottom: Option<Box<Element>>,
} }
impl Expression { impl Expression {

Loading…
Cancel
Save