Struct mentat_ffi::ExternResult
[−]
[src]
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
ok: *const c_void
err: *const c_char
Trait Implementations
impl Debug for ExternResult
[src]
impl Debug for ExternResult
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T, E> From<Result<T, E>> for ExternResult where
E: Display,
[src]
impl<T, E> From<Result<T, E>> for ExternResult where
E: Display,
Auto Trait Implementations
impl !Send for ExternResult
impl !Send for ExternResult
impl !Sync for ExternResult
impl !Sync for ExternResult