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§fn clone(&self) -> InstanceImpl
fn clone(&self) -> InstanceImpl
Returns a duplicate of the value. Read more
1.0.0 · 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 InstanceImpl
impl Debug for InstanceImpl
Source§impl Default for InstanceImpl
impl Default for InstanceImpl
Source§fn default() -> InstanceImpl
fn default() -> InstanceImpl
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InstanceImpl
impl RefUnwindSafe for InstanceImpl
impl Send for InstanceImpl
impl Sync 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