pub struct TextSection {
pub heading: Option<String>,
pub text: String,
}Expand description
One { heading, text } section of an extracted paper.
Fields§
§heading: Option<String>Section heading (h1–h6 text), or None for the lead matter
before the first heading.
text: StringPlain section text: tags stripped, whitespace normalized, inline
math rendered as the LaTeX \(…\) from the source’s alttext.
Trait Implementations§
Source§impl Clone for TextSection
impl Clone for TextSection
Source§fn clone(&self) -> TextSection
fn clone(&self) -> TextSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextSection
impl Debug for TextSection
Source§impl<'de> Deserialize<'de> for TextSection
impl<'de> Deserialize<'de> for TextSection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TextSection
Source§impl PartialEq for TextSection
impl PartialEq for TextSection
Source§fn eq(&self, other: &TextSection) -> bool
fn eq(&self, other: &TextSection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextSection
impl Serialize for TextSection
impl StructuralPartialEq for TextSection
Auto Trait Implementations§
impl Freeze for TextSection
impl RefUnwindSafe for TextSection
impl Send for TextSection
impl Sync for TextSection
impl Unpin for TextSection
impl UnsafeUnpin for TextSection
impl UnwindSafe for TextSection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more