Struct erg_compiler::module::impls::SharedTraitImpls
source · pub struct SharedTraitImpls(/* private fields */);
Implementations§
pub fn new() -> Self
pub fn get<Q: Eq + Hash + ?Sized>( &self, path: &Q ) -> Option<MappedRwLockReadGuard<'_, Set<TraitImpl>>>
pub fn get_mut<Q: Eq + Hash + ?Sized>( &self, path: &Q ) -> Option<MappedRwLockWriteGuard<'_, Set<TraitImpl>>>
pub fn register(&self, name: Str, impls: Set<TraitImpl>)
pub fn remove<Q: Eq + Hash + ?Sized>( &self, qual_name: &Q ) -> Option<Set<TraitImpl>>
pub fn remove_by_path(&self, path: &NormalizedPathBuf)
pub fn rename<Q: Eq + Hash + ?Sized>(&self, old: &Q, new: Str)
pub fn rename_path(&self, old: &NormalizedPathBuf, new: NormalizedPathBuf)
pub fn ref_inner(&self) -> MappedRwLockReadGuard<'_, Dict<Str, Set<TraitImpl>>>
pub fn initialize(&self)
Trait Implementations§
source§fn clone(&self) -> SharedTraitImpls
fn clone(&self) -> SharedTraitImpls
Returns a copy 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§fn default() -> SharedTraitImpls
fn default() -> SharedTraitImpls
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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