pub struct DependentTypeRegistry { /* private fields */ }Expand description
Registry for managing dependent types.
Implementations§
Source§impl DependentTypeRegistry
impl DependentTypeRegistry
Sourcepub fn register(&mut self, ty: DependentType)
pub fn register(&mut self, ty: DependentType)
Register a dependent type.
Sourcepub fn get(&self, name: &str) -> Option<&DependentType>
pub fn get(&self, name: &str) -> Option<&DependentType>
Get a type by name.
Sourcepub fn type_names(&self) -> Vec<&str>
pub fn type_names(&self) -> Vec<&str>
Get all type names.
Trait Implementations§
Source§impl Clone for DependentTypeRegistry
impl Clone for DependentTypeRegistry
Source§fn clone(&self) -> DependentTypeRegistry
fn clone(&self) -> DependentTypeRegistry
Returns a duplicate of the value. Read more
1.0.0 · 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 DependentTypeRegistry
impl Debug for DependentTypeRegistry
Source§impl Default for DependentTypeRegistry
impl Default for DependentTypeRegistry
Source§fn default() -> DependentTypeRegistry
fn default() -> DependentTypeRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DependentTypeRegistry
impl RefUnwindSafe for DependentTypeRegistry
impl Send for DependentTypeRegistry
impl Sync for DependentTypeRegistry
impl Unpin for DependentTypeRegistry
impl UnwindSafe for DependentTypeRegistry
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