#[non_exhaustive]pub struct CitationEntry {
pub content: Arc<NodeTree<Flm>>,
}Expand description
The citation entry of one cited work: what the list of cited works shows
for it, and what a citation mark shows for it under the in-place placement
(CitationPlacement::InPlace).
Its content is a synthesized
value (a small tree
held outside the document’s trees) of inline content in the document’s own
vocabulary: text, \emph, a link, a formula. It must state no fact about
the document: a citation entry that declares a label is refused where it
is shown, as any synthesized value stating such a fact is (see value
catch-up). The retrieve
stage reads each citation entry as the document would show it, with user
definitions expanded, and refuses one that holds a citation (\cite,
\R) or block content (a paragraph break, a list, a heading); the citation
key then has no citation entry.
New fields may be added; build one with ProviderCx::parse_entry,
ProviderCx::build_entry or CitationEntry::new.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.content: Arc<NodeTree<Flm>>The citation entry’s content: a synthesized value’s tree, as
copy_run_into_value makes
one, whose root’s children are the content.
Implementations§
Source§impl CitationEntry
impl CitationEntry
Sourcepub fn new(content: Arc<NodeTree<Flm>>) -> CitationEntry
pub fn new(content: Arc<NodeTree<Flm>>) -> CitationEntry
Creates the citation entry that shows content, a synthesized value’s
tree whose root’s children are inline content. A citation provider
usually calls ProviderCx::parse_entry or ProviderCx::build_entry
instead, which make such a tree.
Trait Implementations§
Source§impl Clone for CitationEntry
impl Clone for CitationEntry
Auto Trait Implementations§
impl !RefUnwindSafe for CitationEntry
impl !UnwindSafe for CitationEntry
impl Forget for CitationEntry
impl Freeze for CitationEntry
impl Move for CitationEntry
impl Send for CitationEntry
impl Sync for CitationEntry
impl Unpin for CitationEntry
impl UnsafeUnpin for CitationEntry
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