pub struct SortRegistry<S: DenseId, const TRACK: bool> { /* private fields */ }Expand description
Append-only sort registry backed by SpMap.
Implementations§
Source§impl<S: DenseId, const TRACK: bool> SortRegistry<S, TRACK>
impl<S: DenseId, const TRACK: bool> SortRegistry<S, TRACK>
pub fn new() -> Self
pub fn register_builtins(&mut self, sort_names: &[&str])
pub fn intern(&mut self, name: &str) -> S
pub fn name(&self, id: S) -> &str
pub fn is_builtin(&self, id: S) -> bool
pub fn is_concrete(&self, id: S) -> bool
pub fn concrete_count(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn id_by_name(&self, name: &str) -> Option<S>
pub fn mark(&mut self, shrink: ShrinkPolicy) -> SortRegistryToken
pub fn restore(&mut self, token: SortRegistryToken)
Trait Implementations§
Auto Trait Implementations§
impl<S, const TRACK: bool> Freeze for SortRegistry<S, TRACK>
impl<S, const TRACK: bool> RefUnwindSafe for SortRegistry<S, TRACK>where
SpMap<String, (), <S as DenseId>::Index, TRACK>: RefUnwindSafe,
PhantomData<S>: RefUnwindSafe,
impl<S, const TRACK: bool> Send for SortRegistry<S, TRACK>
impl<S, const TRACK: bool> Sync for SortRegistry<S, TRACK>
impl<S, const TRACK: bool> Unpin for SortRegistry<S, TRACK>
impl<S, const TRACK: bool> UnsafeUnpin for SortRegistry<S, TRACK>
impl<S, const TRACK: bool> UnwindSafe for SortRegistry<S, TRACK>
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