#[repr(C)]pub struct CAnyRustPtr(/* private fields */);
Implementations§
Source§impl CAnyRustPtr
impl CAnyRustPtr
pub fn new<T>(val: T) -> CAnyRustPtrwhere
T: Any,
pub fn raw(ptr: SyncPtr<c_void>) -> CAnyRustPtr
pub fn as_ref<T>(&self) -> Result<&T, CError>where
T: Any,
pub fn as_mut<T>(&mut self) -> Result<&mut T, CError>where
T: Any,
pub fn take<T>(self) -> Result<T, CError>where
T: Any,
Trait Implementations§
Source§impl Drop for CAnyRustPtr
impl Drop for CAnyRustPtr
Source§impl<T> From<T> for CAnyRustPtrwhere
T: IntoAnyPtr,
impl<T> From<T> for CAnyRustPtrwhere
T: IntoAnyPtr,
Source§fn from(val: T) -> CAnyRustPtr
fn from(val: T) -> CAnyRustPtr
Converts to this type from the input type.
Source§impl From<usize> for CAnyRustPtr
impl From<usize> for CAnyRustPtr
Source§fn from(ptr: usize) -> CAnyRustPtr
fn from(ptr: usize) -> CAnyRustPtr
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CAnyRustPtr
impl RefUnwindSafe for CAnyRustPtr
impl Send for CAnyRustPtr
impl Sync for CAnyRustPtr
impl Unpin for CAnyRustPtr
impl UnwindSafe for CAnyRustPtr
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