pub struct Registry { /* private fields */ }
Implementations§
Source§impl Registry
impl Registry
pub fn new() -> Self
pub fn get_or_register_many<'r, 'g>( &'r self, graphemes: &'g str, ) -> GetOrRegisterMany<'r, 'g> ⓘ
pub fn get_or_register(&self, grapheme: &str) -> Result<Id, NotGrapheme>
pub fn lookup<F, T>(&self, id: Id, scope: F) -> T
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Registry
impl RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnwindSafe for Registry
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