#[non_exhaustive]pub enum MissingEntry {
NoProviderInstalled,
UnknownProvider,
Failed(CitationProviderError),
Cites,
NotInline,
Unprocessable,
}Expand description
The reason why a cited key has no citation entry.
The table ENTRIES contains this reason for each cited key without a
citation entry (Retrieval::Missing). The check stage reports each such
citation key in the error NoEntry, with the text that
MissingEntry::reason returns.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoProviderInstalled
No citation provider has been contributed to the service slot
PROVIDERS_SLOT.
UnknownProvider
Every citation provider returned Ok(None) for the citation key, that
is, no citation provider handles this citation key.
Failed(CitationProviderError)
The CitationProviderError structure contains the details (including
the error message) that a citation provider reports when it fails to
retrieve a particular citation key. The retrieve stage also creates such
an error itself when CitationProvider::answer_all returns a
different number of results than it received requests.
Cites
The citation entry contains a citation (\cite or \R), and the
retrieve stage refused it. The retrieve stage reports this case as the
error EntryCites.
NotInline
The citation entry contains a paragraph break or a block, and the
retrieve stage refused it, because a citation entry must be inline
content. The retrieve stage reports this case as the error
EntryNotInline.
Unprocessable
The retrieve stage could not bring the citation entry up to date as the document would show it (value catch-up), and refused it. For instance, a rewrite stage failed over the content of the citation entry.
Implementations§
Source§impl MissingEntry
impl MissingEntry
Sourcepub fn reason(&self) -> String
pub fn reason(&self) -> String
Returns the text that the error NoEntry contains
after the citation key to state this reason. For instance,
MissingEntry::UnknownProvider returns no appropriate citation provider found.
Trait Implementations§
Source§impl Clone for MissingEntry
impl Clone for MissingEntry
Source§impl Debug for MissingEntry
impl Debug for MissingEntry
impl Eq for MissingEntry
Source§impl PartialEq for MissingEntry
impl PartialEq for MissingEntry
impl StructuralPartialEq for MissingEntry
Auto Trait Implementations§
impl Forget for MissingEntry
impl Freeze for MissingEntry
impl Move for MissingEntry
impl RefUnwindSafe for MissingEntry
impl Send for MissingEntry
impl Sync for MissingEntry
impl Unpin for MissingEntry
impl UnsafeUnpin for MissingEntry
impl UnwindSafe for MissingEntry
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