pub struct ResolvedEntries {
pub entries: Vec<(Option<String>, String)>,
pub includefiles: Vec<String>,
pub warnings: Vec<ToctreeWarning>,
}Expand description
toctree['entries'] (title, ref) pairs plus toctree['includefiles'].
Fields§
§entries: Vec<(Option<String>, String)>(title, ref); ref is a resolved docname, an external URL, or the
literal self.
includefiles: Vec<String>The subset of entries that are real documents, in the same order.
warnings: Vec<ToctreeWarning>Diagnostics for the entries that did not resolve. The single source of truth for toctree warnings: nothing downstream re-resolves.
Implementations§
Source§impl ResolvedEntries
impl ResolvedEntries
Sourcepub fn entries_attr(&self) -> AttrValue
pub fn entries_attr(&self) -> AttrValue
The entries attribute as docutils renders it: one Python tuple
repr per item ((None, 'intro')), which pformat then
serial_escapes and joins.
pub fn includefiles_attr(&self) -> AttrValue
Trait Implementations§
Source§impl Clone for ResolvedEntries
impl Clone for ResolvedEntries
Source§fn clone(&self) -> ResolvedEntries
fn clone(&self) -> ResolvedEntries
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 ResolvedEntries
impl Debug for ResolvedEntries
Source§impl Default for ResolvedEntries
impl Default for ResolvedEntries
Source§fn default() -> ResolvedEntries
fn default() -> ResolvedEntries
Returns the “default value” for a type. Read more
impl Eq for ResolvedEntries
Source§impl PartialEq for ResolvedEntries
impl PartialEq for ResolvedEntries
impl StructuralPartialEq for ResolvedEntries
Auto Trait Implementations§
impl Freeze for ResolvedEntries
impl RefUnwindSafe for ResolvedEntries
impl Send for ResolvedEntries
impl Sync for ResolvedEntries
impl Unpin for ResolvedEntries
impl UnsafeUnpin for ResolvedEntries
impl UnwindSafe for ResolvedEntries
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