pub struct MethodRegistry<'a> { /* private fields */ }Implementations§
Source§impl<'a> MethodRegistry<'a>
impl<'a> MethodRegistry<'a>
pub fn new() -> Self
pub fn register(&mut self, tag: TypeTag, name: &'static str, f: MethodFn<'a>)
pub fn get(&self, tag: TypeTag, name: &str) -> Option<MethodFn<'a>>
Sourcepub fn entries(&self) -> Vec<(TypeTag, &'static str)>
pub fn entries(&self) -> Vec<(TypeTag, &'static str)>
Every registered (receiver, method) pair. Lets tooling (the LSP) check
its stdlib manifest against the real registry so the two cannot drift.
pub fn builtin() -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MethodRegistry<'a>
impl<'a> RefUnwindSafe for MethodRegistry<'a>
impl<'a> Send for MethodRegistry<'a>
impl<'a> Sync for MethodRegistry<'a>
impl<'a> Unpin for MethodRegistry<'a>
impl<'a> UnsafeUnpin for MethodRegistry<'a>
impl<'a> UnwindSafe for MethodRegistry<'a>
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