diff options
| author | Sébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com> | 2023-04-23 14:33:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-23 14:33:56 +0200 |
| commit | 561ff979d574f496415c0499345d41da2e1f6e1e (patch) | |
| tree | 037479ac000bd87a1cb2149e5389b28f08d24051 /library/src/math/underover.rs | |
| parent | 2fbb14f712708188649181525813b3ac5a02e0fb (diff) | |
Add instrumentation (Part 1) (#761)
Diffstat (limited to 'library/src/math/underover.rs')
| -rw-r--r-- | library/src/math/underover.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/library/src/math/underover.rs b/library/src/math/underover.rs index a8d7b71c..5282c6dc 100644 --- a/library/src/math/underover.rs +++ b/library/src/math/underover.rs @@ -21,6 +21,7 @@ pub struct UnderlineElem { } impl LayoutMath for UnderlineElem { + #[tracing::instrument(skip(ctx))] fn layout_math(&self, ctx: &mut MathContext) -> SourceResult<()> { layout(ctx, &self.body(), &None, '\u{305}', LINE_GAP, false, self.span()) } @@ -43,6 +44,7 @@ pub struct OverlineElem { } impl LayoutMath for OverlineElem { + #[tracing::instrument(skip(ctx))] fn layout_math(&self, ctx: &mut MathContext) -> SourceResult<()> { layout(ctx, &self.body(), &None, '\u{332}', LINE_GAP, true, self.span()) } @@ -69,6 +71,7 @@ pub struct UnderbraceElem { } impl LayoutMath for UnderbraceElem { + #[tracing::instrument(skip(ctx))] fn layout_math(&self, ctx: &mut MathContext) -> SourceResult<()> { layout( ctx, @@ -103,6 +106,7 @@ pub struct OverbraceElem { } impl LayoutMath for OverbraceElem { + #[tracing::instrument(skip(ctx))] fn layout_math(&self, ctx: &mut MathContext) -> SourceResult<()> { layout( ctx, @@ -137,6 +141,7 @@ pub struct UnderbracketElem { } impl LayoutMath for UnderbracketElem { + #[tracing::instrument(skip(ctx))] fn layout_math(&self, ctx: &mut MathContext) -> SourceResult<()> { layout( ctx, @@ -171,6 +176,7 @@ pub struct OverbracketElem { } impl LayoutMath for OverbracketElem { + #[tracing::instrument(skip(ctx))] fn layout_math(&self, ctx: &mut MathContext) -> SourceResult<()> { layout( ctx, |
