Struct mentat_ffi::ExternResult [] [src]

#[repr(C)]
pub struct ExternResult { pub ok: *const c_void, pub err: *const c_char, }

A C representation Rust's Result. A value of Ok results in ok containing a raw pointer as a c_void and err containing a null pointer. A value of Err results in value containing a null pointer and err containing an error message.

#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 ExternResult
[src]

Formats the value using the given formatter. Read more

impl<T, E> From<Result<T, E>> for ExternResult where
    E: Display
[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for ExternResult

impl !Sync for ExternResult