pub struct InstanceImpl { /* private fields */ }Expand description
A complete set of method implementations for an instance.
Implementations§
Source§impl InstanceImpl
impl InstanceImpl
Sourcepub fn add(&mut self, impl_: MethodImpl)
pub fn add(&mut self, impl_: MethodImpl)
Add a method implementation.
Sourcepub fn get(&self, method: &Name) -> Option<&MethodImpl>
pub fn get(&self, method: &Name) -> Option<&MethodImpl>
Get the implementation for a method.
Sourcepub fn count_defaults(&self) -> usize
pub fn count_defaults(&self) -> usize
Count default implementations.
Sourcepub fn method_names(&self) -> Vec<&Name>
pub fn method_names(&self) -> Vec<&Name>
All method names.
Trait Implementations§
Source§impl Clone for InstanceImpl
impl Clone for InstanceImpl
Source§impl Debug for InstanceImpl
impl Debug for InstanceImpl
Auto Trait Implementations§
impl !Send for InstanceImpl
impl !Sync for InstanceImpl
impl Forget for InstanceImpl
impl Freeze for InstanceImpl
impl Move for InstanceImpl
impl RefUnwindSafe for InstanceImpl
impl Unpin for InstanceImpl
impl UnsafeUnpin for InstanceImpl
impl UnwindSafe for InstanceImpl
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