Trait autocxx::RValueParam

source ·
pub unsafe trait RValueParam<T>: Sized { }
Expand description

A trait representing a parameter to a C++ function which is received by rvalue (i.e. by move).

Panics

The implementations of this trait which take a cxx::UniquePtr will panic if the pointer is NULL.

Safety

Implementers must guarantee that the pointer returned by get_ptr is of the correct size and alignment of T.

Implementations on Foreign Types§

source§

impl<T> RValueParam<T> for Pin<Box<T>>

source§

impl<'a, T> RValueParam<T> for Pin<MoveRef<'a, T>>

Implementors§

source§

impl<T> RValueParam<T> for UniquePtr<T>where T: UniquePtrTarget,