pub struct StdDomainData {
pub labels: BTreeMap<String, (String, String, String)>,
pub anonlabels: BTreeMap<String, (String, String)>,
pub objects: BTreeMap<(String, String), (String, String)>,
pub progoptions: BTreeMap<(Option<String>, String), (String, String)>,
pub terms: BTreeMap<String, (String, String)>,
}Expand description
Standard-domain (std) registries: cross-reference labels, generic
objects (:option:, :envvar:, …), program options, and glossary
terms. Field shapes mirror Sphinx’s StandardDomain.data exactly
(domains/std/__init__.py:768-781).
Fields§
§labels: BTreeMap<String, (String, String, String)>labelname -> (docname, labelid, sectionname).
anonlabels: BTreeMap<String, (String, String)>labelname -> (docname, labelid).
objects: BTreeMap<(String, String), (String, String)>(objtype, name) -> (docname, labelid).
progoptions: BTreeMap<(Option<String>, String), (String, String)>(program, optname) -> (docname, labelid).
terms: BTreeMap<String, (String, String)>lowercased term -> (docname, labelid).
Implementations§
Source§impl StdDomainData
impl StdDomainData
Sourcepub fn note_object(
&mut self,
objtype: &str,
name: &str,
docname: &str,
labelid: &str,
) -> Option<String>
pub fn note_object( &mut self, objtype: &str, name: &str, docname: &str, labelid: &str, ) -> Option<String>
StandardDomain.note_object (:848-864). Returns the docname of a
previous description of the same object, which the caller reports as
warning [ENV §8 #2] — note Sphinx names the docname here, not
doc2path, and offers no :no-index: hint (unlike the py domain).
Trait Implementations§
Source§impl Clone for StdDomainData
impl Clone for StdDomainData
Source§fn clone(&self) -> StdDomainData
fn clone(&self) -> StdDomainData
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 StdDomainData
impl Debug for StdDomainData
Source§impl Default for StdDomainData
impl Default for StdDomainData
Source§impl<'de> Deserialize<'de> for StdDomainData
impl<'de> Deserialize<'de> for StdDomainData
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StdDomainData
impl PartialEq for StdDomainData
Source§impl Serialize for StdDomainData
impl Serialize for StdDomainData
impl StructuralPartialEq for StdDomainData
Auto Trait Implementations§
impl Freeze for StdDomainData
impl RefUnwindSafe for StdDomainData
impl Send for StdDomainData
impl Sync for StdDomainData
impl Unpin for StdDomainData
impl UnsafeUnpin for StdDomainData
impl UnwindSafe for StdDomainData
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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