Struct erg_compiler::module::impls::SharedTraitImpls
source · pub struct SharedTraitImpls(_);
Implementations§
pub fn new() -> Self
pub fn get<Q: Eq + Hash + ?Sized>(&self, path: &Q) -> Option<&Set<TraitImpl>>where Str: Borrow<Q>,
pub fn get_mut<Q: Eq + Hash + ?Sized>( &self, path: &Q ) -> Option<&mut Set<TraitImpl>>where Str: Borrow<Q>,
pub fn register(&self, name: Str, impls: Set<TraitImpl>)
pub fn remove<Q: Eq + Hash + ?Sized>(&self, path: &Q) -> Option<Set<TraitImpl>>where Str: Borrow<Q>,
pub fn keys(&self) -> impl Iterator<Item = Str>
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