[][src]Enum cxx::kind::Opaque

pub enum Opaque {}

An opaque type which cannot be passed or held by value within Rust.

Rust's move semantics are such that every move is equivalent to a memcpy. This is incompatible in general with C++'s constructor-based move semantics, so a C++ type which has a destructor or nontrivial move constructor must never exist by value in Rust. In CXX, such types are called opaque C++ types.

When passed across an FFI boundary, an opaque C++ type must be behind an indirection such as a reference or UniquePtr.

Trait Implementations

impl Kind for Opaque[src]

Auto Trait Implementations

impl RefUnwindSafe for Opaque

impl Send for Opaque

impl Sync for Opaque

impl Unpin for Opaque

impl UnwindSafe for Opaque

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.