pub struct MetaInterner { /* private fields */ }Implementations§
Source§impl MetaInterner
impl MetaInterner
pub fn new() -> Self
pub fn intern<M: AsRef<[[StrRef; 2]]>>(&mut self, meta: M) -> MetaRef
pub fn get(&self, meta: MetaRef) -> Option<&[[StrRef; 2]]>
pub fn eq<M: AsRef<[[StrRef; 2]]>>( &self, expected: M, interned: MetaRef, ) -> Option<bool>
pub fn eq_some<S: AsRef<[[StrRef; 2]]>>( &self, expected: S, interned: MetaRef, ) -> bool
Trait Implementations§
Source§impl Debug for MetaInterner
impl Debug for MetaInterner
Source§impl Default for MetaInterner
impl Default for MetaInterner
Source§fn default() -> MetaInterner
fn default() -> MetaInterner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MetaInterner
impl RefUnwindSafe for MetaInterner
impl !Send for MetaInterner
impl !Sync for MetaInterner
impl Unpin for MetaInterner
impl UnsafeUnpin for MetaInterner
impl UnwindSafe for MetaInterner
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