pub struct MetaCallPointer { /* private fields */ }Expand description
Represents MetaCall pointer. This type cannot be used in other languages. This type is highly unsafe so be careful!
Implementations§
Source§impl MetaCallPointer
impl MetaCallPointer
Sourcepub fn new(ptr: impl MetaCallValue) -> Self
pub fn new(ptr: impl MetaCallValue) -> Self
Creates a new MetaCall pointer and casts it to T.
Sourcepub fn get_value_untyped(self) -> Box<dyn MetaCallValue>
pub fn get_value_untyped(self) -> Box<dyn MetaCallValue>
Consumes the MetaCall pointer and returns ownership of the value without type casting(MetaCallValue).
Sourcepub fn get_value<T: MetaCallValue>(self) -> Result<T, Box<dyn MetaCallValue>>
pub fn get_value<T: MetaCallValue>(self) -> Result<T, Box<dyn MetaCallValue>>
Consumes the MetaCall pointer and returns ownership of the value.
Trait Implementations§
Source§impl Clone for MetaCallPointer
impl Clone for MetaCallPointer
Source§impl Debug for MetaCallPointer
impl Debug for MetaCallPointer
Source§impl Drop for MetaCallPointer
impl Drop for MetaCallPointer
impl MetaCallValue for MetaCallPointer
Equivalent to MetaCall pointer type.
impl Send for MetaCallPointer
impl Sync for MetaCallPointer
Auto Trait Implementations§
impl Freeze for MetaCallPointer
impl !RefUnwindSafe for MetaCallPointer
impl Unpin for MetaCallPointer
impl !UnwindSafe for MetaCallPointer
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