pub struct OpenRegistry;Expand description
Permissive default registry — accepts any type id as valid.
Intended for tests and mock hosts. Real hosts supply their own implementation that catalogues the types they can materialise.
Implementations§
Source§impl OpenRegistry
impl OpenRegistry
Trait Implementations§
Source§impl Debug for OpenRegistry
impl Debug for OpenRegistry
Source§impl Default for OpenRegistry
impl Default for OpenRegistry
Source§fn default() -> OpenRegistry
fn default() -> OpenRegistry
Returns the “default value” for a type. Read more
Source§impl ElementTypeDescriptorRegistry for OpenRegistry
impl ElementTypeDescriptorRegistry for OpenRegistry
Source§fn descriptors(&self) -> Vec<ElementTypeDescriptor>
fn descriptors(&self) -> Vec<ElementTypeDescriptor>
Every descriptor the registry knows about.
Source§fn valid_type_ids(&self) -> BTreeSet<TypeId>
fn valid_type_ids(&self) -> BTreeSet<TypeId>
Set of valid canonical type ids (derived from
Self::descriptors).Source§fn descriptor(&self, type_id: &TypeId) -> Option<ElementTypeDescriptor>
fn descriptor(&self, type_id: &TypeId) -> Option<ElementTypeDescriptor>
Look up one descriptor by canonical type id.
Source§fn has_infrastructure_type(&self) -> bool
fn has_infrastructure_type(&self) -> bool
true when any registered descriptor carries
provides_infrastructure.Auto Trait Implementations§
impl Freeze for OpenRegistry
impl RefUnwindSafe for OpenRegistry
impl Send for OpenRegistry
impl Sync for OpenRegistry
impl Unpin for OpenRegistry
impl UnsafeUnpin for OpenRegistry
impl UnwindSafe for OpenRegistry
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