pub struct InternPool { /* private fields */ }Expand description
Deduplicating pool of absolute IRI strings.
Implementations§
Source§impl InternPool
impl InternPool
Sourcepub fn get(&self, iri: &str) -> Option<IriId>
pub fn get(&self, iri: &str) -> Option<IriId>
Look up an already-interned IRI without inserting.
Sourcepub fn intern(&mut self, iri: &str) -> Result<IriId>
pub fn intern(&mut self, iri: &str) -> Result<IriId>
Intern an absolute IRI, returning an existing id if already present.
Trait Implementations§
Source§impl Clone for InternPool
impl Clone for InternPool
Source§fn clone(&self) -> InternPool
fn clone(&self) -> InternPool
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 InternPool
impl Debug for InternPool
Source§impl Default for InternPool
impl Default for InternPool
Source§fn default() -> InternPool
fn default() -> InternPool
Returns the “default value” for a type. Read more
impl Eq for InternPool
Source§impl PartialEq for InternPool
impl PartialEq for InternPool
Source§fn eq(&self, other: &InternPool) -> bool
fn eq(&self, other: &InternPool) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InternPool
Auto Trait Implementations§
impl Freeze for InternPool
impl RefUnwindSafe for InternPool
impl Send for InternPool
impl Sync for InternPool
impl Unpin for InternPool
impl UnsafeUnpin for InternPool
impl UnwindSafe for InternPool
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