pub struct Domain {
pub name: String,
pub label: String,
pub object_types: HashMap<String, ObjectType>,
pub objects: HashMap<String, Vec<DomainObject>>,
pub indices: Vec<DomainIndex>,
}Expand description
Domain represents a Sphinx domain (py, cpp, js, std, etc.)
Fields§
§name: String§label: String§object_types: HashMap<String, ObjectType>§objects: HashMap<String, Vec<DomainObject>>§indices: Vec<DomainIndex>Implementations§
Source§impl Domain
impl Domain
pub fn new(name: &str) -> Self
pub fn add_object(&mut self, obj_type: &str, object: DomainObject)
pub fn get_objects(&self) -> Vec<&DomainObject>
pub fn get_all_objects(&self) -> Vec<&DomainObject>
pub fn get_objects_by_type(&self, obj_type: &str) -> Option<&Vec<DomainObject>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Domain
impl RefUnwindSafe for Domain
impl Send for Domain
impl Sync for Domain
impl Unpin for Domain
impl UnwindSafe for Domain
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,
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