Trait nock::FromNoun [] [src]

pub trait FromNoun: Sized {
    type Err;
    fn from_noun(n: &Noun) -> Result<Self, Self::Err>;
}

A trait for types that can be instantiated from a Nock noun.

Associated Types

type Err

The associated error.

Required Methods

fn from_noun(n: &Noun) -> Result<Self, Self::Err>

Try to convert a noun to an instance of the type.

Implementors