pub struct AbstractValue<T: ?Sized> { /* private fields */ }Expand description
A value passed as an abstract interface: the instance, and the operations of the interface on it.
Implementations§
Source§impl<T: ?Sized> AbstractValue<T>
impl<T: ?Sized> AbstractValue<T>
Sourcepub fn new(handle: ValueHandle, ops: Arc<T>) -> AbstractValue<T>
pub fn new(handle: ValueHandle, ops: Arc<T>) -> AbstractValue<T>
The instance handle, whose operations are ops (usually the
typed handle of the same instance).
Sourcepub fn handle(&self) -> &ValueHandle
pub fn handle(&self) -> &ValueHandle
The untyped handle of the instance.
Sourcepub fn ptr_eq(&self, other: &AbstractValue<T>) -> bool
pub fn ptr_eq(&self, other: &AbstractValue<T>) -> bool
Whether both are the same instance.
Trait Implementations§
Source§impl<T: ?Sized> Clone for AbstractValue<T>
impl<T: ?Sized> Clone for AbstractValue<T>
Auto Trait Implementations§
impl<T> Forget for AbstractValue<T>where
T: ?Sized,
impl<T> Freeze for AbstractValue<T>
impl<T> RefUnwindSafe for AbstractValue<T>
impl<T> Send for AbstractValue<T>
impl<T> Sync for AbstractValue<T>
impl<T> Unpin for AbstractValue<T>
impl<T> UnsafeUnpin for AbstractValue<T>
impl<T> UnwindSafe for AbstractValue<T>
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