From 90a1f9b131532e829a4f24495b95a0546ec69f70 Mon Sep 17 00:00:00 2001 From: gemmaro Date: Mon, 15 Nov 2021 12:06:53 +0900 Subject: [PATCH] Change fields' visibilities to pub * Change * Some structs' fields' visibilities are changed from `pub(crate)` to `pub` --- src/elements/literal.rs | 8 ++++---- src/elements/special.rs | 26 +++++++++++++------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/elements/literal.rs b/src/elements/literal.rs index 8d13db7..2c32dbd 100644 --- a/src/elements/literal.rs +++ b/src/elements/literal.rs @@ -18,16 +18,16 @@ pub enum Literal { #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct PlainText { - pub(crate) text: String, - pub(crate) formatting: Option, + pub text: String, + pub formatting: Option, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Symbol { - pub(crate) symbol: String, + pub symbol: String, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Number { - pub(crate) number: String, + pub number: String, } diff --git a/src/elements/special.rs b/src/elements/special.rs index 93b0280..d57d66d 100644 --- a/src/elements/special.rs +++ b/src/elements/special.rs @@ -33,43 +33,43 @@ pub struct Prod { #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Frac { - pub(crate) top: Box, - pub(crate) bottom: Box, + pub top: Box, + pub bottom: Box, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Pow { - pub(crate) base: Box, - pub(crate) exp: Box, + pub base: Box, + pub exp: Box, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Sub { - pub(crate) base: Box, - pub(crate) lower: Box, + pub base: Box, + pub lower: Box, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Sqrt { - pub(crate) inner: Box, + pub inner: Box, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Root { - pub(crate) base: Box, - pub(crate) inner: Box, + pub base: Box, + pub inner: Box, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct Integral { - pub(crate) top: Option>, - pub(crate) bottom: Option>, + pub top: Option>, + pub bottom: Option>, } #[derive(Debug, Clone, PartialOrd, PartialEq)] pub struct OIntegral { - pub(crate) top: Option>, - pub(crate) bottom: Option>, + pub top: Option>, + pub bottom: Option>, } impl Expression {