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§impl Debug for DependentTypeRegistry
impl Debug for DependentTypeRegistry
Auto Trait Implementations§
impl Freeze for DependentTypeRegistry
impl RefUnwindSafe for DependentTypeRegistry
impl Send for DependentTypeRegistry
impl Sync for DependentTypeRegistry
impl Unpin for DependentTypeRegistry
impl UnsafeUnpin 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