[−][src]Enum bee_ternary::tryte::Tryte
A ternary tryte. Equivalent to 3 trits.
Variants
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]
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]
fn from_iter<I: IntoIterator<Item = Tryte>>(iter: I) -> Self
[src]
impl Hash for Tryte
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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.
fn try_from(c: char) -> Result<Self, Self::Error>
[src]
impl TryFrom<i8> for Tryte
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,