Skip to main content

AsCppRef

Trait AsCppRef 

Source
pub trait AsCppRef<T: ?Sized> {
    // Required method
    fn as_cpp_ref(&self) -> CppRef<T>;
}
Expand description

Any type which can return a C++ reference to its contents.

Required Methods§

Source

fn as_cpp_ref(&self) -> CppRef<T>

Returns a reference which obeys C++ reference semantics

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§