[][src]Trait iota_conversion::Trinary

pub trait Trinary {
    fn trits(&self) -> Vec<Trit>;
fn trits_with_length(&self, length: usize) -> Vec<Trit>;
fn trytes(&self) -> Result<Trytes, Error>; }

Trait used to enable conversion to trinary types

Required methods

fn trits(&self) -> Vec<Trit>

Provides the trit vector representation of the value

fn trits_with_length(&self, length: usize) -> Vec<Trit>

Provides the trit vector representation of the value with given length, padding with 0 if required

fn trytes(&self) -> Result<Trytes, Error>

Provides the tryte string representation of the value

Loading content...

Implementations on Foreign Types

impl Trinary for i64[src]

impl Trinary for Vec<Trit>[src]

impl<'_> Trinary for &'_ [Trit][src]

impl Trinary for [Trit; 243][src]

impl<'_> Trinary for &'_ str[src]

Loading content...

Implementors

impl Trinary for Trytes[src]

Loading content...