pub struct BuildMetadata;Expand description
The stage BUILD (flm.metadata.build), which builds the metadata’s pieces:
a compute stage that runs once per document. It reads the option DocMeta,
writes the tables TITLE, AUTHOR and DATE, and provides the
capability READ.
Each text (the title, each author’s name, affiliations and notes, the date) is parsed as inline FLM content with the registry’s language, as a source named after the file the text was written in and counted from the text’s line and column there, so that each problem the parse finds is reported at its place in that file. Every problem the parse finds is reported. An author’s email address is not parsed.
The title’s content is one TITLE node holding the parsed content, and the
date’s one DATE node. The authors’ content is one AUTHOR node holding
one AUTHOR_ENTRY node per author, in the order given; an author’s node
holds, in this order, an AUTHOR_NAME node, one AUTHOR_AFFILIATION node
per affiliation, carrying the affiliation’s number (AffiliationPayload), an
AUTHOR_EMAIL node carrying the address (EmailPayload) when the author
has one, and one AUTHOR_NOTE node per note. The stage numbers the distinct
affiliations of the document from 1, in the order in which they first appear;
two affiliations whose texts are the same once the whitespace at both ends is
trimmed are the same affiliation. A piece without a text holds no content, and
no backend places it.
A part that cannot be parsed or built is reported as MetadataFailed. The
title or the date is then left out; in the authors, the affiliation or the
note is left out, and an author whose name cannot be parsed is left out
whole.
Trait Implementations§
Source§impl Clone for BuildMetadata
impl Clone for BuildMetadata
impl Copy for BuildMetadata
Source§impl Debug for BuildMetadata
impl Debug for BuildMetadata
Source§impl Default for BuildMetadata
impl Default for BuildMetadata
Source§impl Stage for BuildMetadata
impl Stage for BuildMetadata
Source§fn decl(&self) -> StageDecl
fn decl(&self) -> StageDecl
Auto Trait Implementations§
impl Forget for BuildMetadata
impl Freeze for BuildMetadata
impl Move for BuildMetadata
impl RefUnwindSafe for BuildMetadata
impl Send for BuildMetadata
impl Sync for BuildMetadata
impl Unpin for BuildMetadata
impl UnsafeUnpin for BuildMetadata
impl UnwindSafe for BuildMetadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more