[][src]Trait hycon_rust::traits::EnumConverter

pub trait EnumConverter<OutputType> {
    fn to_output(&self) -> OutputType;
fn from_input(number: OutputType) -> Result<Self, Box<dyn Error>>
    where
        Self: Sized
; }

Performs a conversion on an enum

Required methods

fn to_output(&self) -> OutputType

Returns a representation of the Enum in the form of the OutputType

fn from_input(number: OutputType) -> Result<Self, Box<dyn Error>> where
    Self: Sized

Returns an Enum from an input of the Specified Type

Loading content...

Implementors

impl EnumConverter<u8> for BlockStatus[src]

Loading content...