[][src]Enum bee_ternary::tryte::Tryte

#[repr(i8)]pub enum Tryte {
    N,
    O,
    P,
    Q,
    R,
    S,
    T,
    U,
    V,
    W,
    X,
    Y,
    Z,
    Nine,
    A,
    B,
    C,
    D,
    E,
    F,
    G,
    H,
    I,
    J,
    K,
    L,
    M,
}

A ternary tryte. Equivalent to 3 trits.

Variants

N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Nine
A
B
C
D
E
F
G
H
I
J
K
L
M

Implementations

impl Tryte[src]

pub const MIN_VALUE: Self[src]

The minimum value that this Tryte can hold.

pub const MAX_VALUE: Self[src]

The maximum value that this Tryte can hold.

pub fn from_trits(trits: [Btrit; 3]) -> Self[src]

Turn an array of three Btrits into a Tryte.

pub fn as_trits(&self) -> &Trits<T3B1>[src]

Interpret this tryte as a T3B1 trit slice with exactly 3 elements.

pub fn as_trits_mut(&mut self) -> &mut Trits<T3B1>[src]

Interpret this tryte as a mutable T3B1 trit slice with exactly 3 elements.

Trait Implementations

impl Clone for Tryte[src]

impl Copy for Tryte[src]

impl Debug for Tryte[src]

impl Display for Tryte[src]

impl Eq for Tryte[src]

impl From<[Btrit; 3]> for Tryte[src]

impl From<Tryte> for char[src]

impl FromIterator<Tryte> for TryteBuf[src]

impl Hash for Tryte[src]

impl PartialEq<Tryte> for Tryte[src]

impl StructuralEq for Tryte[src]

impl StructuralPartialEq for Tryte[src]

impl TryFrom<char> for Tryte[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<i8> for Tryte[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Tryte

impl Send for Tryte

impl Sync for Tryte

impl Unpin for Tryte

impl UnwindSafe for Tryte

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.