Trait coset::iana::EnumI64

source ·
pub trait EnumI64: Sized + Eq {
    // Required methods
    fn from_i64(i: i64) -> Option<Self>;
    fn to_i64(&self) -> i64;
}
Expand description

Trait indicating an enum that can be constructed from i64 values.

Required Methods§

source

fn from_i64(i: i64) -> Option<Self>

source

fn to_i64(&self) -> i64

Object Safety§

This trait is not object safe.

Implementors§