pub struct BoundMethodData {
pub receiver: Value,
pub method: Rc<str>,
}Expand description
A method captured together with the receiver it was read off. Two bound
methods are equal only when they name the same method on the very same
instance (a.speak == a.speak, but not b.speak).
Fields§
§receiver: Value§method: Rc<str>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BoundMethodData
impl !Send for BoundMethodData
impl !Sync for BoundMethodData
impl !UnwindSafe for BoundMethodData
impl Freeze for BoundMethodData
impl Unpin for BoundMethodData
impl UnsafeUnpin for BoundMethodData
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