Enum cglue::result::CResult [−][src]
#[repr(C)]
pub enum CResult<T, E> {
Ok(T),
Err(E),
}
Expand description
FFI safe result.
This type is not meant for general use, but rather as a last-resort conversion for type wrapping.
Typical workflow would include temporarily converting into/from CResult.
But preferred way to pass results efficiently would be to implement IntError
trait on the E
type.