Trait ErrorCode

Source
pub trait ErrorCode: Copy {
    const FIRST: u32;
    const Sentinel: u32;

    // Provided method
    fn from_u32(val: u32) -> Option<Self> { ... }
}

Required Associated Constants§

Provided Methods§

Source

fn from_u32(val: u32) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ErrorCode for CTesseractErrorCode

Source§

const FIRST: u32 = 5u32

Source§

const Sentinel: u32 = 9u32

Implementors§