diff options
Diffstat (limited to 'src/model/content.rs')
| -rw-r--r-- | src/model/content.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/model/content.rs b/src/model/content.rs index 1bd19f14..4eeecbd6 100644 --- a/src/model/content.rs +++ b/src/model/content.rs @@ -39,19 +39,16 @@ enum Attr { impl Content { /// Create an empty element. - #[tracing::instrument()] pub fn new(func: ElemFunc) -> Self { Self { func, attrs: EcoVec::new() } } /// Create empty content. - #[tracing::instrument()] pub fn empty() -> Self { Self::new(SequenceElem::func()) } /// Create a new sequence element from multiples elements. - #[tracing::instrument(skip_all)] pub fn sequence(iter: impl IntoIterator<Item = Self>) -> Self { let mut iter = iter.into_iter(); let Some(first) = iter.next() else { return Self::empty() }; @@ -94,7 +91,6 @@ impl Content { } /// Access the child and styles. - #[tracing::instrument(skip_all)] pub fn to_styled(&self) -> Option<(&Content, &Styles)> { if !self.is::<StyledElem>() { return None; @@ -120,7 +116,6 @@ impl Content { /// Cast to a trait object if the contained element has the given /// capability. - #[tracing::instrument(skip_all)] pub fn with<C>(&self) -> Option<&C> where C: ?Sized + 'static, @@ -132,7 +127,6 @@ impl Content { /// Cast to a mutable trait object if the contained element has the given /// capability. - #[tracing::instrument(skip_all)] pub fn with_mut<C>(&mut self) -> Option<&mut C> where C: ?Sized + 'static, @@ -180,7 +174,6 @@ impl Content { } /// Access a field on the content. - #[tracing::instrument(skip_all)] pub fn field(&self, name: &str) -> Option<Value> { if let (Some(iter), "children") = (self.to_sequence(), name) { Some(Value::Array(iter.cloned().map(Value::Content).collect())) |
