[−][src]Struct samurai::id::Id
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.
fn add(self, rhs: f32) -> Self
[src]
impl Add<f64> for Id
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: f64) -> Self
[src]
impl Add<i128> for Id
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: i128) -> Self
[src]
impl Add<i16> for Id
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: i16) -> Self
[src]
impl Add<i32> for Id
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: i32) -> Self
[src]
impl Add<i64> for Id
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: i64) -> Self
[src]
impl Add<i8> for Id
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: i8) -> Self
[src]
impl Add<isize> for Id
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: isize) -> Self
[src]
impl Add<u128> for Id
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: u128) -> Self
[src]
impl Add<u16> for Id
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: u16) -> Self
[src]
impl Add<u32> for Id
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: u32) -> Self
[src]
impl Add<u64> for Id
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: u64) -> Self
[src]
impl Add<u8> for Id
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: u8) -> Self
[src]
impl Add<usize> for Id
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: usize) -> Self
[src]
impl AddAssign<f32> for Id
[src]
fn add_assign(&mut self, rhs: f32)
[src]
impl AddAssign<f64> for Id
[src]
fn add_assign(&mut self, rhs: f64)
[src]
impl AddAssign<i128> for Id
[src]
fn add_assign(&mut self, rhs: i128)
[src]
impl AddAssign<i16> for Id
[src]
fn add_assign(&mut self, rhs: i16)
[src]
impl AddAssign<i32> for Id
[src]
fn add_assign(&mut self, rhs: i32)
[src]
impl AddAssign<i64> for Id
[src]
fn add_assign(&mut self, rhs: i64)
[src]
impl AddAssign<i8> for Id
[src]
fn add_assign(&mut self, rhs: i8)
[src]
impl AddAssign<isize> for Id
[src]
fn add_assign(&mut self, rhs: isize)
[src]
impl AddAssign<u128> for Id
[src]
fn add_assign(&mut self, rhs: u128)
[src]
impl AddAssign<u16> for Id
[src]
fn add_assign(&mut self, rhs: u16)
[src]
impl AddAssign<u32> for Id
[src]
fn add_assign(&mut self, rhs: u32)
[src]
impl AddAssign<u64> for Id
[src]
fn add_assign(&mut self, rhs: u64)
[src]
impl AddAssign<u8> for Id
[src]
fn add_assign(&mut self, rhs: u8)
[src]
impl AddAssign<usize> for Id
[src]
fn add_assign(&mut self, rhs: usize)
[src]
impl BitXor<Id> for Id
[src]
type Output = Self
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: Self) -> Self::Output
[src]
impl Clone for Id
[src]
impl Copy for Id
[src]
impl Debug for Id
[src]
impl<'de> Deserialize<'de> for Id
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Id
[src]
impl Ord for Id
[src]
fn cmp(&self, other: &Id) -> 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 PartialEq<Id> for Id
[src]
impl PartialOrd<Id> for Id
[src]
fn partial_cmp(&self, other: &Id) -> 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 Serialize for Id
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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.
fn sub(self, rhs: f32) -> Self
[src]
impl Sub<f64> for Id
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: f64) -> Self
[src]
impl Sub<i128> for Id
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: i128) -> Self
[src]
impl Sub<i16> for Id
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: i16) -> Self
[src]
impl Sub<i32> for Id
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: i32) -> Self
[src]
impl Sub<i64> for Id
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: i64) -> Self
[src]
impl Sub<i8> for Id
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: i8) -> Self
[src]
impl Sub<isize> for Id
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: isize) -> Self
[src]
impl Sub<u128> for Id
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: u128) -> Self
[src]
impl Sub<u16> for Id
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: u16) -> Self
[src]
impl Sub<u32> for Id
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: u32) -> Self
[src]
impl Sub<u64> for Id
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: u64) -> Self
[src]
impl Sub<u8> for Id
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: u8) -> Self
[src]
impl Sub<usize> for Id
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: usize) -> Self
[src]
impl SubAssign<f32> for Id
[src]
fn sub_assign(&mut self, rhs: f32)
[src]
impl SubAssign<f64> for Id
[src]
fn sub_assign(&mut self, rhs: f64)
[src]
impl SubAssign<i128> for Id
[src]
fn sub_assign(&mut self, rhs: i128)
[src]
impl SubAssign<i16> for Id
[src]
fn sub_assign(&mut self, rhs: i16)
[src]
impl SubAssign<i32> for Id
[src]
fn sub_assign(&mut self, rhs: i32)
[src]
impl SubAssign<i64> for Id
[src]
fn sub_assign(&mut self, rhs: i64)
[src]
impl SubAssign<i8> for Id
[src]
fn sub_assign(&mut self, rhs: i8)
[src]
impl SubAssign<isize> for Id
[src]
fn sub_assign(&mut self, rhs: isize)
[src]
impl SubAssign<u128> for Id
[src]
fn sub_assign(&mut self, rhs: u128)
[src]
impl SubAssign<u16> for Id
[src]
fn sub_assign(&mut self, rhs: u16)
[src]
impl SubAssign<u32> for Id
[src]
fn sub_assign(&mut self, rhs: u32)
[src]
impl SubAssign<u64> for Id
[src]
fn sub_assign(&mut self, rhs: u64)
[src]
impl SubAssign<u8> for Id
[src]
fn sub_assign(&mut self, rhs: u8)
[src]
impl SubAssign<usize> for Id
[src]
fn sub_assign(&mut self, rhs: usize)
[src]
Auto Trait Implementations
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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
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>,