pub struct DomainCatalog(/* private fields */);Expand description
A validated collection of open domain declarations.
Implementations§
Source§impl DomainCatalog
impl DomainCatalog
Sourcepub fn new(
specs: impl IntoIterator<Item = DomainSpec>,
) -> Result<Self, DomainError>
pub fn new( specs: impl IntoIterator<Item = DomainSpec>, ) -> Result<Self, DomainError>
Validates and builds a catalog.
Sourcepub fn get(&self, id: &DomainId) -> Option<&DomainSpec>
pub fn get(&self, id: &DomainId) -> Option<&DomainSpec>
Looks up a declaration without provider-specific dispatch.
Sourcepub fn iter(&self) -> impl Iterator<Item = &DomainSpec>
pub fn iter(&self) -> impl Iterator<Item = &DomainSpec>
Iterates in stable domain-id order.
Trait Implementations§
Source§impl Clone for DomainCatalog
impl Clone for DomainCatalog
Source§fn clone(&self) -> DomainCatalog
fn clone(&self) -> DomainCatalog
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 DomainCatalog
impl Debug for DomainCatalog
Source§impl Default for DomainCatalog
impl Default for DomainCatalog
Source§fn default() -> DomainCatalog
fn default() -> DomainCatalog
Returns the “default value” for a type. Read more
impl Eq for DomainCatalog
Source§impl PartialEq for DomainCatalog
impl PartialEq for DomainCatalog
impl StructuralPartialEq for DomainCatalog
Source§impl ToRelationDatum for DomainCatalog
impl ToRelationDatum for DomainCatalog
Auto Trait Implementations§
impl Freeze for DomainCatalog
impl RefUnwindSafe for DomainCatalog
impl Send for DomainCatalog
impl Sync for DomainCatalog
impl Unpin for DomainCatalog
impl UnsafeUnpin for DomainCatalog
impl UnwindSafe for DomainCatalog
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