diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-08 10:54:04 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-08 11:02:27 +0100 |
| commit | e5eab73374880077971f3f22acbdd3d302877128 (patch) | |
| tree | 07aa926b27032d6bcd82486d664dfd4161ccbd3e /library/src/math/matrix.rs | |
| parent | 1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 (diff) | |
Streamline field names
Diffstat (limited to 'library/src/math/matrix.rs')
| -rw-r--r-- | library/src/math/matrix.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/src/math/matrix.rs b/library/src/math/matrix.rs index 3e257385..c7303735 100644 --- a/library/src/math/matrix.rs +++ b/library/src/math/matrix.rs @@ -20,7 +20,7 @@ const VERTICAL_PADDING: Ratio = Ratio::new(0.1); pub struct VecNode { /// The elements of the vector. #[variadic] - pub elements: Vec<Content>, + pub children: Vec<Content>, /// The delimiter to use. /// @@ -36,7 +36,7 @@ pub struct VecNode { impl LayoutMath for VecNode { fn layout_math(&self, ctx: &mut MathContext) -> SourceResult<()> { let delim = ctx.styles().get(Self::DELIM); - let frame = layout_vec_body(ctx, &self.elements(), Align::Center)?; + let frame = layout_vec_body(ctx, &self.children(), Align::Center)?; layout_delimiters(ctx, frame, Some(delim.open()), Some(delim.close())) } } @@ -141,7 +141,7 @@ impl LayoutMath for MatNode { pub struct CasesNode { /// The branches of the case distinction. #[variadic] - pub branches: Vec<Content>, + pub children: Vec<Content>, /// The delimiter to use. /// @@ -157,7 +157,7 @@ pub struct CasesNode { impl LayoutMath for CasesNode { fn layout_math(&self, ctx: &mut MathContext) -> SourceResult<()> { let delim = ctx.styles().get(Self::DELIM); - let frame = layout_vec_body(ctx, &self.branches(), Align::Left)?; + let frame = layout_vec_body(ctx, &self.children(), Align::Left)?; layout_delimiters(ctx, frame, Some(delim.open()), None) } } |
