[][src]Struct samurai::id::Id

pub struct Id { /* fields omitted */ }

Methods

impl Id[src]

pub fn new(h: u128, l: u128) -> Self[src]

pub fn from_bytes(data: &[u8; 32]) -> Self[src]

pub fn as_bytes(&self) -> [u8; 32][src]

pub fn zero() -> Self[src]

pub fn max() -> Self[src]

pub fn rand() -> Self[src]

pub fn half(self) -> Self[src]

Trait Implementations

impl Add<f32> for Id[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<f64> for Id[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<i128> for Id[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<i16> for Id[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<i32> for Id[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<i64> for Id[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<i8> for Id[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<isize> for Id[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<u128> for Id[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<u16> for Id[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<u32> for Id[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<u64> for Id[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<u8> for Id[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<usize> for Id[src]

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<f32> for Id[src]

impl AddAssign<f64> for Id[src]

impl AddAssign<i128> for Id[src]

impl AddAssign<i16> for Id[src]

impl AddAssign<i32> for Id[src]

impl AddAssign<i64> for Id[src]

impl AddAssign<i8> for Id[src]

impl AddAssign<isize> for Id[src]

impl AddAssign<u128> for Id[src]

impl AddAssign<u16> for Id[src]

impl AddAssign<u32> for Id[src]

impl AddAssign<u64> for Id[src]

impl AddAssign<u8> for Id[src]

impl AddAssign<usize> for Id[src]

impl BitXor<Id> for Id[src]

type Output = Self

The resulting type after applying the ^ operator.

impl Clone for Id[src]

impl Copy for Id[src]

impl Debug for Id[src]

impl<'de> Deserialize<'de> for Id[src]

impl Eq for Id[src]

impl Ord for Id[src]

impl PartialEq<Id> for Id[src]

impl PartialOrd<Id> for Id[src]

impl Serialize for Id[src]

impl StructuralEq for Id[src]

impl StructuralPartialEq for Id[src]

impl Sub<f32> for Id[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<f64> for Id[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<i128> for Id[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<i16> for Id[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<i32> for Id[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<i64> for Id[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<i8> for Id[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<isize> for Id[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<u128> for Id[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<u16> for Id[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<u32> for Id[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<u64> for Id[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<u8> for Id[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<usize> for Id[src]

type Output = Self

The resulting type after applying the - operator.

impl SubAssign<f32> for Id[src]

impl SubAssign<f64> for Id[src]

impl SubAssign<i128> for Id[src]

impl SubAssign<i16> for Id[src]

impl SubAssign<i32> for Id[src]

impl SubAssign<i64> for Id[src]

impl SubAssign<i8> for Id[src]

impl SubAssign<isize> for Id[src]

impl SubAssign<u128> for Id[src]

impl SubAssign<u16> for Id[src]

impl SubAssign<u32> for Id[src]

impl SubAssign<u64> for Id[src]

impl SubAssign<u8> for Id[src]

impl SubAssign<usize> for Id[src]

Auto Trait Implementations

impl RefUnwindSafe for Id

impl Send for Id

impl Sync for Id

impl Unpin for Id

impl UnwindSafe for Id

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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>,