pub struct DenseIndex { /* private fields */ }Implementations§
Source§impl DenseIndex
impl DenseIndex
pub fn compile<I, S>(symbols: I) -> Result<Self, DenseError>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn symbols(&self) -> &[String]
pub fn dense_id_by_symbol(&self, symbol: &str) -> Option<DenseId>
pub fn dense_id(&self, symbol: &str) -> Option<DenseId>
pub fn dense_id_by_hash(&self, hash: u64) -> Option<DenseId>
pub fn symbol(&self, dense: DenseId) -> Option<&str>
pub fn kind(&self, dense: DenseId) -> Option<NodeKind>
Trait Implementations§
Source§impl Clone for DenseIndex
impl Clone for DenseIndex
Source§fn clone(&self) -> DenseIndex
fn clone(&self) -> DenseIndex
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 DenseIndex
impl Debug for DenseIndex
Source§impl<'de> Deserialize<'de> for DenseIndex
impl<'de> Deserialize<'de> for DenseIndex
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DenseIndex
impl RefUnwindSafe for DenseIndex
impl Send for DenseIndex
impl Sync for DenseIndex
impl Unpin for DenseIndex
impl UnsafeUnpin for DenseIndex
impl UnwindSafe for DenseIndex
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