diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-08 19:46:06 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-08 19:46:06 +0100 |
| commit | 495b525694aa5901385f3acad043b4a9f3ebb911 (patch) | |
| tree | 36be972fb666b61309b7538335de1a7313c46c8f /library/src/math | |
| parent | e6857f810e8868d95ebe78753568016b6dea12ca (diff) | |
Naming consistency
Diffstat (limited to 'library/src/math')
| -rw-r--r-- | library/src/math/matrix.rs | 4 | ||||
| -rw-r--r-- | library/src/math/mod.rs | 22 | ||||
| -rw-r--r-- | library/src/math/style.rs | 16 |
3 files changed, 21 insertions, 21 deletions
diff --git a/library/src/math/matrix.rs b/library/src/math/matrix.rs index d835b348..bc5e542a 100644 --- a/library/src/math/matrix.rs +++ b/library/src/math/matrix.rs @@ -1,6 +1,6 @@ use super::*; -/// A column vector in a mathematical formula. +/// A column vector. #[derive(Debug, Hash)] pub struct VecNode(Vec<Content>); @@ -60,7 +60,7 @@ castable! { }, } -/// A case distinction in a mathematical formula. +/// A case distinction. #[derive(Debug, Hash)] pub struct CasesNode(Vec<Content>); diff --git a/library/src/math/mod.rs b/library/src/math/mod.rs index 83cc62aa..1139296c 100644 --- a/library/src/math/mod.rs +++ b/library/src/math/mod.rs @@ -17,10 +17,10 @@ use crate::text::{FontFamily, LinebreakNode, SpaceNode, SymbolNode, TextNode}; /// A piece of a mathematical formula. #[derive(Debug, Clone, Hash)] pub struct MathNode { - /// The pieces of the formula. - pub children: Vec<Content>, /// Whether the formula is display-level. pub display: bool, + /// The pieces of the formula. + pub children: Vec<Content>, } #[node(Show, Layout, Inline, Texify)] @@ -350,7 +350,7 @@ impl Texify for AccNode { } } -/// A fraction in a mathematical formula. +/// A fraction. #[derive(Debug, Hash)] pub struct FracNode { /// The numerator. @@ -379,7 +379,7 @@ impl Texify for FracNode { } } -/// A binomial in a mathematical formula. +/// A binomial. #[derive(Debug, Hash)] pub struct BinomNode { /// The upper index. @@ -408,7 +408,7 @@ impl Texify for BinomNode { } } -/// A sub- and/or superscript in a mathematical formula. +/// A sub- and/or superscript. #[derive(Debug, Hash)] pub struct ScriptNode { /// The base. @@ -455,9 +455,9 @@ impl Texify for AlignNode { } } -/// A square root in a mathematical formula. +/// A square root. #[derive(Debug, Hash)] -pub struct SqrtNode(Content); +pub struct SqrtNode(pub Content); #[node(Texify)] impl SqrtNode { @@ -475,9 +475,9 @@ impl Texify for SqrtNode { } } -/// A floored expression in a mathematical formula. +/// A floored expression. #[derive(Debug, Hash)] -pub struct FloorNode(Content); +pub struct FloorNode(pub Content); #[node(Texify)] impl FloorNode { @@ -495,9 +495,9 @@ impl Texify for FloorNode { } } -/// A ceiled expression in a mathematical formula. +/// A ceiled expression. #[derive(Debug, Hash)] -pub struct CeilNode(Content); +pub struct CeilNode(pub Content); #[node(Texify)] impl CeilNode { diff --git a/library/src/math/style.rs b/library/src/math/style.rs index 3db2e631..9e81a549 100644 --- a/library/src/math/style.rs +++ b/library/src/math/style.rs @@ -2,7 +2,7 @@ use super::*; /// Serif (roman) font style. #[derive(Debug, Hash)] -pub struct SerifNode(Content); +pub struct SerifNode(pub Content); #[node(Texify)] impl SerifNode { @@ -22,7 +22,7 @@ impl Texify for SerifNode { /// Sans-serif font style. #[derive(Debug, Hash)] -pub struct SansNode(Content); +pub struct SansNode(pub Content); #[node(Texify)] impl SansNode { @@ -42,7 +42,7 @@ impl Texify for SansNode { /// Bold font style. #[derive(Debug, Hash)] -pub struct BoldNode(Content); +pub struct BoldNode(pub Content); #[node(Texify)] impl BoldNode { @@ -62,7 +62,7 @@ impl Texify for BoldNode { /// Italic font style. #[derive(Debug, Hash)] -pub struct ItalNode(Content); +pub struct ItalNode(pub Content); #[node(Texify)] impl ItalNode { @@ -82,7 +82,7 @@ impl Texify for ItalNode { /// Calligraphic font style. #[derive(Debug, Hash)] -pub struct CalNode(Content); +pub struct CalNode(pub Content); #[node(Texify)] impl CalNode { @@ -102,7 +102,7 @@ impl Texify for CalNode { /// Fraktur font style. #[derive(Debug, Hash)] -pub struct FrakNode(Content); +pub struct FrakNode(pub Content); #[node(Texify)] impl FrakNode { @@ -122,7 +122,7 @@ impl Texify for FrakNode { /// Monospace font style. #[derive(Debug, Hash)] -pub struct MonoNode(Content); +pub struct MonoNode(pub Content); #[node(Texify)] impl MonoNode { @@ -142,7 +142,7 @@ impl Texify for MonoNode { /// Blackboard bold (double-struck) font style. #[derive(Debug, Hash)] -pub struct BbNode(Content); +pub struct BbNode(pub Content); #[node(Texify)] impl BbNode { |
