Trait cglue::result::IntError

source ·
pub trait IntError {
    // Required methods
    fn into_int_err(self) -> NonZeroI32;
    fn from_int_err(err: NonZeroI32) -> Self;
}
Expand description

Represents an integer-convertable error value.

This trait can be implemented for error types to allow for more efficient conversion and more user-friendly usage from C API side.

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntError for ()

source§

impl IntError for Error

source§

impl IntError for Error

Implementors§