Struct mentat_ffi::ExternOption [] [src]

#[repr(C)]
pub struct ExternOption { pub value: *mut c_void, }

A C representation Rust's Option. A value of Some results in value containing a raw pointer as a c_void. A value of None results in value containing a null pointer.

#Safety

Callers are responsible for managing the memory for the return value. A destructor destroy is provided for releasing the memory for this pointer type.

Fields

Trait Implementations

impl Debug for ExternOption
[src]

Formats the value using the given formatter. Read more

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

Performs the conversion.

Auto Trait Implementations

impl !Send for ExternOption

impl !Sync for ExternOption