pub struct CitationEntries { /* private fields */ }Expand description
The value of the table ENTRIES: the cited keys of the document, in
order of first citation, each with the result of the retrieve stage
(Retrieval).
The serialized form of the table (Table::project) is a list with one
map for each cited key, in order of first citation. Each map contains the
field key, with the citation key, and one of two other fields: entry,
with the plain text of the citation entry, or missing, with a token that
represents the reason why the citation key has no citation entry (for
instance failed).
Implementations§
Source§impl CitationEntries
impl CitationEntries
Sourcepub fn get(&self, key: &str) -> Option<&Retrieval>
pub fn get(&self, key: &str) -> Option<&Retrieval>
Returns the result of the retrieve stage for the citation key key, or
None if key is not among the cited keys of the document
(KEYS).
Sourcepub fn entry(&self, key: &str) -> Option<&CitationEntry>
pub fn entry(&self, key: &str) -> Option<&CitationEntry>
Returns the citation entry of the citation key key, or None if key
has no citation entry or is not among the cited keys of the document.
Trait Implementations§
Source§impl Clone for CitationEntries
impl Clone for CitationEntries
Source§impl Debug for CitationEntries
impl Debug for CitationEntries
Source§impl Default for CitationEntries
impl Default for CitationEntries
Source§impl SingletonTable for CitationEntries
impl SingletonTable for CitationEntries
Source§impl Table for CitationEntries
impl Table for CitationEntries
Source§fn absorb(&mut self, piece: CitationEntries)
fn absorb(&mut self, piece: CitationEntries)
Appends the citation keys of piece that this table does not contain
yet, with their results, in their order in piece. A citation key
that this table already contains keeps its result.
Source§fn project(&self, _cx: &dyn ProjectCx) -> SerialValue
fn project(&self, _cx: &dyn ProjectCx) -> SerialValue
Returns the serialized form of the table, which the documentation of
CitationEntries describes.
Source§fn piece_class(&self) -> PieceClass
fn piece_class(&self) -> PieceClass
Auto Trait Implementations§
impl !RefUnwindSafe for CitationEntries
impl !UnwindSafe for CitationEntries
impl Forget for CitationEntries
impl Freeze for CitationEntries
impl Move for CitationEntries
impl Send for CitationEntries
impl Sync for CitationEntries
impl Unpin for CitationEntries
impl UnsafeUnpin for CitationEntrieswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, Retrieval> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Retrieval)>>: UnsafeUnpin,
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