pub struct RustAny { /* private fields */ }Available on crate feature
tensor-ptr only.Expand description
A wrapper around std::any::Any that can be used in a cxx bridge.
This struct is useful to pass any Rust object to C++ code as Box<RustAny>, and the C++ code will call
the destructor of the object when the RustAny object is dropped.
Implementations§
Auto Trait Implementations§
impl Freeze for RustAny
impl !RefUnwindSafe for RustAny
impl !Send for RustAny
impl !Sync for RustAny
impl Unpin for RustAny
impl !UnwindSafe for RustAny
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