pub struct DescriptorIndex { /* private fields */ }Expand description
Stable direct-fact descriptor lookup.
Implementations§
Source§impl DescriptorIndex
impl DescriptorIndex
Sourcepub fn get(&self, descriptor: &DescriptorId) -> Option<&SchemaFactId>
pub fn get(&self, descriptor: &DescriptorId) -> Option<&SchemaFactId>
Return the fact associated with a descriptor.
Sourcepub fn iter(
&self,
) -> impl ExactSizeIterator<Item = (&DescriptorId, &SchemaFactId)>
pub fn iter( &self, ) -> impl ExactSizeIterator<Item = (&DescriptorId, &SchemaFactId)>
Iterate descriptors in stable content order.
Trait Implementations§
Source§impl Clone for DescriptorIndex
impl Clone for DescriptorIndex
Source§fn clone(&self) -> DescriptorIndex
fn clone(&self) -> DescriptorIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DescriptorIndex
impl Debug for DescriptorIndex
Source§impl Default for DescriptorIndex
impl Default for DescriptorIndex
Source§fn default() -> DescriptorIndex
fn default() -> DescriptorIndex
Returns the “default value” for a type. Read more
impl Eq for DescriptorIndex
Source§impl PartialEq for DescriptorIndex
impl PartialEq for DescriptorIndex
impl StructuralPartialEq for DescriptorIndex
Auto Trait Implementations§
impl Freeze for DescriptorIndex
impl RefUnwindSafe for DescriptorIndex
impl Send for DescriptorIndex
impl Sync for DescriptorIndex
impl Unpin for DescriptorIndex
impl UnsafeUnpin for DescriptorIndex
impl UnwindSafe for DescriptorIndex
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