[][src]Trait iota_pow::Trinary

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

Trait used to enable conversion to trinary types

Required methods

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

Provides the trit vector representation of the value

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

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

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

Provides the tryte string representation of the value

Loading content...

Implementations on Foreign Types

impl Trinary for [i8; 243][src]

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

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

impl Trinary for Vec<i8>[src]

impl Trinary for i64[src]

impl Trinary for String[src]

Loading content...

Implementors

Loading content...