pub struct DefIndex { /* private fields */ }Implementations§
Source§impl DefIndex
impl DefIndex
pub fn from_defs(defs: &[DiscoveredDef]) -> Self
pub fn insert(&mut self, def: DiscoveredDef)
pub fn contains(&self, moniker: &Moniker) -> bool
pub fn get(&self, moniker: &Moniker) -> Option<&DiscoveredDef>
pub fn by_name(&self, namespace: Namespace, name: &[u8]) -> &[Moniker]
Trait Implementations§
impl Eq for DefIndex
impl StructuralPartialEq for DefIndex
Auto Trait Implementations§
impl Freeze for DefIndex
impl RefUnwindSafe for DefIndex
impl Send for DefIndex
impl Sync for DefIndex
impl Unpin for DefIndex
impl UnsafeUnpin for DefIndex
impl UnwindSafe for DefIndex
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.