pub enum CitationElement {
Cite,
RefCite,
}Expand description
The per-value data of the two elements: whether a node is a \cite or an
\R, the two kinds of node that carry a citation chunk.
read_chunk reads a citation chunk from either: from a \cite node’s
own arguments and its further calls, or from the field cite written
after an \R. The stages find the nodes carrying a citation chunk by this
type (walk_values_of::<CitationElement> over the element index).
Variants§
Cite
\cite[note]{keys}, attached to the content before it.
RefCite
\R[flags]\cite[note]{keys}, a noun of its sentence, its citation mark
standalone.
Trait Implementations§
Source§impl ApartFromText for CitationElement
The citation keys of a citation chunk are not words of the text around
it, and neither are the flags of an \R; the notes are. A heading without
a label gets an identifier encoded from the text of its title
(ApartFromText); when the title holds \cite[Thm 4]{a}, that text is
the title’s own words and Thm 4, without the citation key a.
impl ApartFromText for CitationElement
The citation keys of a citation chunk are not words of the text around
it, and neither are the flags of an \R; the notes are. A heading without
a label gets an identifier encoded from the text of its title
(ApartFromText); when the title holds \cite[Thm 4]{a}, that text is
the title’s own words and Thm 4, without the citation key a.
Source§fn apart_from_text(&self, node: &NodeRef<'_, Flm>) -> Vec<ContentRef>
fn apart_from_text(&self, node: &NodeRef<'_, Flm>) -> Vec<ContentRef>
node.Source§impl Clone for CitationElement
impl Clone for CitationElement
impl Copy for CitationElement
Source§impl Debug for CitationElement
impl Debug for CitationElement
impl Eq for CitationElement
Source§impl PartialEq for CitationElement
impl PartialEq for CitationElement
impl StructuralPartialEq for CitationElement
Auto Trait Implementations§
impl Forget for CitationElement
impl Freeze for CitationElement
impl Move for CitationElement
impl RefUnwindSafe for CitationElement
impl Send for CitationElement
impl Sync for CitationElement
impl Unpin for CitationElement
impl UnsafeUnpin for CitationElement
impl UnwindSafe for CitationElement
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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