pub struct ToctreeWarning {
pub source: u16,
pub line: u32,
pub message: String,
pub category: Option<String>,
pub kind: ToctreeWarningKind,
}Expand description
One diagnostic produced while resolving a toctree’s entries.
Carried on the parse record (and therefore through the document cache) rather than logged on the spot: resolution happens inside the parser, which has no warning sink, and a cache hit that skipped the parse must still reproduce the build’s warnings.
Fields§
§source: u16Source-table index of the .. toctree:: directive’s line: a
toctree written inside an included file warns against THAT file
(location=toctree is the node, whose source is the included
file’s). Deliberately not #[serde(default)] — the warning rides
the document cache, and a pre-provenance record decoding with
source 0 would name the includer again (cache-shape rule,
crate::rst::RegistryExport::program_options).
line: u321-based line of the .. toctree:: directive (Sphinx’s
location=toctree), within source.
message: StringThe message, formatted exactly as Sphinx formats it.
category: Option<String>Sphinx’s type.subtype category, or None where Sphinx logs the
warning without a type (see crate::error::BuildWarning::category).
kind: ToctreeWarningKindTrait Implementations§
Source§impl Clone for ToctreeWarning
impl Clone for ToctreeWarning
Source§fn clone(&self) -> ToctreeWarning
fn clone(&self) -> ToctreeWarning
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ToctreeWarning
impl Debug for ToctreeWarning
Source§impl<'de> Deserialize<'de> for ToctreeWarning
impl<'de> Deserialize<'de> for ToctreeWarning
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ToctreeWarning
Source§impl PartialEq for ToctreeWarning
impl PartialEq for ToctreeWarning
Source§impl Serialize for ToctreeWarning
impl Serialize for ToctreeWarning
impl StructuralPartialEq for ToctreeWarning
Auto Trait Implementations§
impl Freeze for ToctreeWarning
impl RefUnwindSafe for ToctreeWarning
impl Send for ToctreeWarning
impl Sync for ToctreeWarning
impl Unpin for ToctreeWarning
impl UnsafeUnpin for ToctreeWarning
impl UnwindSafe for ToctreeWarning
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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