[][src]Struct iota_ternary_preview::bigint::t242::T242

pub struct T242<T: Trit>(_);

Methods

impl<T> T242<T> where
    T: Trit
[src]

pub fn from_trit_buf(trits_buf: TritBuf<T1B1Buf<T>>) -> Self[src]

pub fn copy_from_trits<R>(&mut self, trits: &Trits<R>) where
    R: RawEncoding<Trit = T>, 
[src]

Copies all elements from Trits into the inner TritsBuf.

Panics if Trits does not have the same length as the inner buffer (243 elements).

pub fn zero() -> Self[src]

pub fn inner_ref(&self) -> &TritBuf<T1B1Buf<T>>[src]

pub fn inner_mut(&mut self) -> &mut TritBuf<T1B1Buf<T>>[src]

pub fn into_inner(self) -> TritBuf<T1B1Buf<T>>[src]

impl<T> T242<T> where
    T: Trit,
    <T as ShiftTernary>::Target: Trit
[src]

pub fn into_shifted(self) -> T242<<T as ShiftTernary>::Target>[src]

impl T242<Btrit>[src]

pub fn increment_inplace(&mut self) -> bool[src]

pub fn one() -> Self[src]

pub fn neg_one() -> Self[src]

pub fn two() -> Self[src]

pub fn neg_two() -> Self[src]

pub fn max() -> Self[src]

pub fn min() -> Self[src]

impl T242<Utrit>[src]

pub fn increment_inplace(&mut self) -> bool[src]

pub fn one() -> Self[src]

pub fn two() -> Self[src]

pub fn half_max() -> Self[src]

pub fn max() -> Self[src]

pub fn min() -> Self[src]

impl<T: Trit> T242<T>[src]

pub fn into_t243(self) -> T243<T>[src]

impl T242<Btrit>[src]

impl T242<Utrit>[src]

Trait Implementations

impl<T: Clone + Trit> Clone for T242<T>[src]

impl<T: Debug + Trit> Debug for T242<T>[src]

impl<T: Trit> Default for T242<T>[src]

impl<T: Trit> Eq for T242<T>[src]

impl From<T242<Btrit>> for I384<BigEndian, U8Repr>[src]

impl From<T242<Btrit>> for I384<BigEndian, U32Repr>[src]

impl From<T242<Btrit>> for I384<LittleEndian, U32Repr>[src]

impl<T: Trit> From<T242<T>> for T243<T>[src]

impl From<T242<Utrit>> for U384<LittleEndian, U32Repr>[src]

impl From<U384<LittleEndian, [u32; 12]>> for T242<Utrit>[src]

impl<T: Trit> Ord for T242<T>[src]

impl<T: Trit> PartialEq<T242<T>> for T242<T>[src]

impl<T: Trit> PartialOrd<T242<T>> for T242<T>[src]

impl TryFrom<I384<BigEndian, [u32; 12]>> for T242<Btrit>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<I384<BigEndian, [u8; 48]>> for T242<Btrit>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<I384<LittleEndian, [u32; 12]>> for T242<Btrit>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<I384<LittleEndian, [u8; 48]>> for T242<Btrit>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<T> RefUnwindSafe for T242<T> where
    T: RefUnwindSafe

impl<T> Send for T242<T> where
    T: Send

impl<T> Sync for T242<T> where
    T: Sync

impl<T> Unpin for T242<T> where
    T: Unpin

impl<T> UnwindSafe for T242<T> where
    T: UnwindSafe

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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,