Merge pull request #14 from gemmaro/change-field-visibility

[ change ] fields' visibilities to pub
pull/15/head
Julius Riegel 3 years ago committed by GitHub
commit 65fae9af29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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