Struct ftml::parsing::UnstructuredParseResult
source · pub struct UnstructuredParseResult<'r, 't> {
pub result: ParseResult<'r, 't, Vec<Element<'t>>>,
pub table_of_contents_depths: Vec<(usize, String)>,
pub footnotes: Vec<Vec<Element<'t>>>,
pub has_footnote_block: bool,
pub bibliographies: BibliographyList<'t>,
}
Fields§
§result: ParseResult<'r, 't, Vec<Element<'t>>>
The returned result from parsing.
table_of_contents_depths: Vec<(usize, String)>
The “depths” list for table of content entries.
Each value is a zero-indexed depth of how
footnotes: Vec<Vec<Element<'t>>>
The list of footnotes.
Each entry is a series of elements, in combination they make the contents of one footnote.
has_footnote_block: bool
Whether a footnote block was placed during parsing.
bibliographies: BibliographyList<'t>
The list of bibliographies.
See src/tree/bibliography.rs
.
Trait Implementations§
source§impl<'r, 't> Clone for UnstructuredParseResult<'r, 't>
impl<'r, 't> Clone for UnstructuredParseResult<'r, 't>
source§fn clone(&self) -> UnstructuredParseResult<'r, 't>
fn clone(&self) -> UnstructuredParseResult<'r, 't>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'r, 't> Debug for UnstructuredParseResult<'r, 't>
impl<'r, 't> Debug for UnstructuredParseResult<'r, 't>
source§impl<'de, 'r, 't> Deserialize<'de> for UnstructuredParseResult<'r, 't>
impl<'de, 'r, 't> Deserialize<'de> for UnstructuredParseResult<'r, 't>
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
Auto Trait Implementations§
impl<'r, 't> RefUnwindSafe for UnstructuredParseResult<'r, 't>
impl<'r, 't> Send for UnstructuredParseResult<'r, 't>
impl<'r, 't> Sync for UnstructuredParseResult<'r, 't>
impl<'r, 't> Unpin for UnstructuredParseResult<'r, 't>
impl<'r, 't> UnwindSafe for UnstructuredParseResult<'r, 't>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer