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.

Implementors§