[−][src]Struct iota_ternary_preview::bigint::t243::T243
Methods
impl<T> T243<T> where
T: Trit,
[src]
T: Trit,
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]
R: RawEncoding<Trit = T>,
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> T243<T> where
T: Trit,
<T as ShiftTernary>::Target: Trit,
[src]
T: Trit,
<T as ShiftTernary>::Target: Trit,
pub fn into_shifted(self) -> T243<<T as ShiftTernary>::Target>
[src]
impl T243<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 T243<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> T243<T>
[src]
impl T243<Utrit>
[src]
Trait Implementations
impl<T: Clone + Trit> Clone for T243<T>
[src]
impl<T: Debug + Trit> Debug for T243<T>
[src]
impl<T: Trit> Default for T243<T>
[src]
impl<T: Trit> Eq for T243<T>
[src]
impl From<I384<BigEndian, [u32; 12]>> for T243<Btrit>
[src]
impl From<I384<BigEndian, [u8; 48]>> for T243<Btrit>
[src]
impl From<I384<LittleEndian, [u32; 12]>> for T243<Btrit>
[src]
fn from(value: I384<LittleEndian, U32Repr>) -> Self
[src]
impl<T: Trit> From<T242<T>> for T243<T>
[src]
impl From<U384<BigEndian, [u32; 12]>> for T243<Utrit>
[src]
impl From<U384<LittleEndian, [u32; 12]>> for T243<Utrit>
[src]
fn from(value: U384<LittleEndian, U32Repr>) -> Self
[src]
impl<T: Trit> Ord for T243<T>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: Trit> PartialEq<T243<T>> for T243<T>
[src]
impl<T: Trit> PartialOrd<T243<T>> for T243<T>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl TryFrom<T243<Btrit>> for I384<BigEndian, U8Repr>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: T243<Btrit>) -> Result<Self, Error>
[src]
impl TryFrom<T243<Btrit>> for I384<BigEndian, U32Repr>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: T243<Btrit>) -> Result<Self, Error>
[src]
impl TryFrom<T243<Btrit>> for I384<LittleEndian, U32Repr>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: T243<Btrit>) -> Result<Self, Error>
[src]
impl TryFrom<T243<Utrit>> for U384<LittleEndian, U32Repr>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for T243<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for T243<T> where
T: Send,
T: Send,
impl<T> Sync for T243<T> where
T: Sync,
T: Sync,
impl<T> Unpin for T243<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for T243<T> where
T: UnwindSafe,
T: UnwindSafe,
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, 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,