pub struct NumberingWarning {
pub docname: String,
pub toctree_index: usize,
pub message: String,
pub category: Option<String>,
}Expand description
One diagnostic from assign_section_numbers.
Sphinx logs it with location=toctreenode, which renders as the
containing document’s source:line. A Node in this crate carries
byte offsets, not line numbers, so the location is reported as the
containing docname plus the ordinal of the toctree node within that
document (document order) — enough for the builder to look the line up
in the document’s parse records.
Fields§
§docname: StringThe document containing the toctree node the warning is about.
toctree_index: usizeThat node’s 0-based ordinal among the document’s toctree nodes, in
document order.
message: StringThe message, formatted exactly as Sphinx formats it.
category: Option<String>Sphinx’s type.subtype category; see
crate::error::BuildWarning::category.
Trait Implementations§
Source§impl Clone for NumberingWarning
impl Clone for NumberingWarning
Source§fn clone(&self) -> NumberingWarning
fn clone(&self) -> NumberingWarning
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NumberingWarning
impl Debug for NumberingWarning
impl Eq for NumberingWarning
Source§impl PartialEq for NumberingWarning
impl PartialEq for NumberingWarning
impl StructuralPartialEq for NumberingWarning
Auto Trait Implementations§
impl Freeze for NumberingWarning
impl RefUnwindSafe for NumberingWarning
impl Send for NumberingWarning
impl Sync for NumberingWarning
impl Unpin for NumberingWarning
impl UnsafeUnpin for NumberingWarning
impl UnwindSafe for NumberingWarning
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
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> ⓘ
Converts
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> ⓘ
Converts
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