pub struct Integer<E, I>where
E: Environment,
I: IntegerType,{ /* private fields */ }
Implementations§
Source§impl<E, I> Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Integer<E, I>where
E: Environment,
I: IntegerType,
Sourcepub fn from_field_lossy(field: &Field<E>) -> Integer<E, I>
pub fn from_field_lossy(field: &Field<E>) -> Integer<E, I>
Casts an integer from a base field, with lossy truncation.
This method is commonly-used by hash-to-integer algorithms, where the hash output does not need to preserve the full base field.
Source§impl<E, I> Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Integer<E, I>where
E: Environment,
I: IntegerType,
Trait Implementations§
Source§impl<E, I> AbsChecked for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> AbsChecked for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn abs_checked(self) -> <Integer<E, I> as AbsChecked>::Output
fn abs_checked(self) -> <Integer<E, I> as AbsChecked>::Output
Returns the absolute value
of self
.
type Output = Integer<E, I>
Source§impl<E, I> AbsWrapped for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> AbsWrapped for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn abs_wrapped(self) -> <Integer<E, I> as AbsWrapped>::Output
fn abs_wrapped(self) -> <Integer<E, I> as AbsWrapped>::Output
Returns the absolute value
of self
.
type Output = Integer<E, I>
Source§impl<E, I> Add<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Add<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Add for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Add for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> AddAssign<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> AddAssign<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn add_assign(&mut self, other: &Integer<E, I>)
fn add_assign(&mut self, other: &Integer<E, I>)
Adds other
to self
.
Source§impl<E, I> AddAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> AddAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn add_assign(&mut self, other: Integer<E, I>)
fn add_assign(&mut self, other: Integer<E, I>)
Adds other
to self
.
Source§impl<E, I> AddWrapped for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> AddWrapped for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> BitAnd<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> BitAnd<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> BitAnd for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> BitAnd for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> BitAndAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> BitAndAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn bitand_assign(&mut self, other: Integer<E, I>)
fn bitand_assign(&mut self, other: Integer<E, I>)
Performs the bitwise AND
of self
and other
and assigns the result to self
.
Source§impl<E, I> BitOr<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> BitOr<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> BitOr for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> BitOr for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> BitOrAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> BitOrAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn bitor_assign(&mut self, other: Integer<E, I>)
fn bitor_assign(&mut self, other: Integer<E, I>)
Performs the bitwise OR
of self
and other
and assigns the result to self
.
Source§impl<E, I> BitXor<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> BitXor<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> BitXor for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> BitXor for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> BitXorAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> BitXorAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn bitxor_assign(&mut self, other: Integer<E, I>)
fn bitxor_assign(&mut self, other: Integer<E, I>)
Performs the bitwise XOR
of self
and other
and assigns the result to self
.
Source§impl<E, I> Compare for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Compare for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn is_less_than(
&self,
other: &Integer<E, I>,
) -> <Integer<E, I> as Compare>::Output
fn is_less_than( &self, other: &Integer<E, I>, ) -> <Integer<E, I> as Compare>::Output
Returns true
if self
is less than other
.
Source§fn is_greater_than(
&self,
other: &Integer<E, I>,
) -> <Integer<E, I> as Compare>::Output
fn is_greater_than( &self, other: &Integer<E, I>, ) -> <Integer<E, I> as Compare>::Output
Returns true
if self
is greater than other
.
Source§fn is_less_than_or_equal(
&self,
other: &Integer<E, I>,
) -> <Integer<E, I> as Compare>::Output
fn is_less_than_or_equal( &self, other: &Integer<E, I>, ) -> <Integer<E, I> as Compare>::Output
Returns true
if self
is less than or equal to other
.
Source§fn is_greater_than_or_equal(
&self,
other: &Integer<E, I>,
) -> <Integer<E, I> as Compare>::Output
fn is_greater_than_or_equal( &self, other: &Integer<E, I>, ) -> <Integer<E, I> as Compare>::Output
Returns true
if self
is greater than or equal to other
.
type Output = Boolean<E>
Source§impl<E, I> Debug for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Debug for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Deref for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Deref for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<'de, E, I> Deserialize<'de> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<'de, E, I> Deserialize<'de> for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Integer<E, I>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Integer<E, I>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserializes the integer from a string or bytes.
Source§impl<E, I> Display for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Display for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Distribution<Integer<E, I>> for Standardwhere
E: Environment,
I: IntegerType,
impl<E, I> Distribution<Integer<E, I>> for Standardwhere
E: Environment,
I: IntegerType,
Source§impl<E, I> Div<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Div<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Div for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Div for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> DivAssign<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> DivAssign<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn div_assign(&mut self, other: &Integer<E, I>)
fn div_assign(&mut self, other: &Integer<E, I>)
Divides self
by other
.
Source§impl<E, I> DivAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> DivAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn div_assign(&mut self, other: Integer<E, I>)
fn div_assign(&mut self, other: Integer<E, I>)
Divides self
by other
.
Source§impl<E, I> DivWrapped for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> DivWrapped for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Equal for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Equal for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> FromBits for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> FromBits for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> FromBytes for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> FromBytes for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> FromField for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> FromField for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn from_field(
field: &<Integer<E, I> as FromField>::Field,
) -> Result<Integer<E, I>, Error>
fn from_field( field: &<Integer<E, I> as FromField>::Field, ) -> Result<Integer<E, I>, Error>
Casts an integer from a base field.
This method guarantees the following:
- If the field element is larger than the integer domain, then the operation will fail.
- If the field element is smaller than the integer domain, then the operation will succeed.
type Field = Field<E>
Source§impl<E, I> FromFields for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> FromFields for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> FromStr for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> FromStr for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Modulo for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Modulo for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Mul<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Mul<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Mul for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Mul for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> MulAssign<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> MulAssign<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn mul_assign(&mut self, other: &Integer<E, I>)
fn mul_assign(&mut self, other: &Integer<E, I>)
Multiplies self
by other
.
Source§impl<E, I> MulAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> MulAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn mul_assign(&mut self, other: Integer<E, I>)
fn mul_assign(&mut self, other: Integer<E, I>)
Multiplies self
by other
.
Source§impl<E, I> MulWrapped for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> MulWrapped for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Neg for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Neg for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Not for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Not for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> One for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> One for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Ord for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Ord for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn cmp(&self, other: &Integer<E, I>) -> Ordering
fn cmp(&self, other: &Integer<E, I>) -> Ordering
Returns the lexicographic ordering of self
and other
.
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<E, I> Parser for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Parser for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> PartialOrd for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> PartialOrd for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I, M> PowWrapped<Integer<E, M>> for Integer<E, I>
impl<E, I, M> PowWrapped<Integer<E, M>> for Integer<E, I>
Source§impl<E, I> Rem<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Rem<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Rem for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Rem for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> RemAssign<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> RemAssign<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn rem_assign(&mut self, other: &Integer<E, I>)
fn rem_assign(&mut self, other: &Integer<E, I>)
Returns the remainder
of self
divided by other
.
Source§impl<E, I> RemAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> RemAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn rem_assign(&mut self, other: Integer<E, I>)
fn rem_assign(&mut self, other: Integer<E, I>)
Returns the remainder
of self
divided by other
.
Source§impl<E, I> RemWrapped for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> RemWrapped for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Serialize for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Serialize for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serializes the integer into a string or as bytes.
Source§impl<E, I, M> ShlAssign<Integer<E, M>> for Integer<E, I>
impl<E, I, M> ShlAssign<Integer<E, M>> for Integer<E, I>
Source§fn shl_assign(&mut self, n: Integer<E, M>)
fn shl_assign(&mut self, n: Integer<E, M>)
Shifts self
to the left by n
bits and assigns the result to self
.
Source§impl<E, I, M> ShlChecked<Integer<E, M>> for Integer<E, I>
impl<E, I, M> ShlChecked<Integer<E, M>> for Integer<E, I>
Source§impl<E, I, M> ShlWrapped<Integer<E, M>> for Integer<E, I>
impl<E, I, M> ShlWrapped<Integer<E, M>> for Integer<E, I>
Source§impl<E, I, M> ShrAssign<Integer<E, M>> for Integer<E, I>
impl<E, I, M> ShrAssign<Integer<E, M>> for Integer<E, I>
Source§fn shr_assign(&mut self, n: Integer<E, M>)
fn shr_assign(&mut self, n: Integer<E, M>)
Shifts self
to the right by n
bits and assigns the result to self
.
Source§impl<E, I, M> ShrChecked<Integer<E, M>> for Integer<E, I>
impl<E, I, M> ShrChecked<Integer<E, M>> for Integer<E, I>
Source§impl<E, I, M> ShrWrapped<Integer<E, M>> for Integer<E, I>
impl<E, I, M> ShrWrapped<Integer<E, M>> for Integer<E, I>
Source§impl<E, I> SizeInBits for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> SizeInBits for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn size_in_bits() -> usize
fn size_in_bits() -> usize
Returns the integer size in bits.
Source§impl<E, I> SizeInBytes for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> SizeInBytes for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the integer size in bytes.
Source§impl<E, I> Square for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Square for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Sub<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Sub<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Sub for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Sub for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> SubAssign<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> SubAssign<&Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn sub_assign(&mut self, other: &Integer<E, I>)
fn sub_assign(&mut self, other: &Integer<E, I>)
Subtracts other
from self
.
Source§impl<E, I> SubAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> SubAssign for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn sub_assign(&mut self, other: Integer<E, I>)
fn sub_assign(&mut self, other: Integer<E, I>)
Subtracts other
from self
.
Source§impl<E, I> SubWrapped for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> SubWrapped for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Ternary for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Ternary for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> ToBits for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> ToBits for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
Outputs the little-endian bit representation of self
without trailing zeros.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
Outputs the big-endian bit representation of self
without leading zeros.
Source§fn to_bits_le(&self) -> Vec<bool>
fn to_bits_le(&self) -> Vec<bool>
self
as a boolean array in little-endian order.Source§fn to_bits_be(&self) -> Vec<bool>
fn to_bits_be(&self) -> Vec<bool>
self
as a boolean array in big-endian order.Source§impl<E, I> ToBytes for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> ToBytes for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> ToField for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> ToField for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> ToFields for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> ToFields for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> TypeName for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> TypeName for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Visibility for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Visibility for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§impl<E, I> Zero for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Zero for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Copy for Integer<E, I>
impl<E, I> Eq for Integer<E, I>
impl<E, I> IntegerCore<I> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> IntegerTrait<I, Integer<E, u8>, Integer<E, u16>, Integer<E, u32>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> StructuralPartialEq for Integer<E, I>where
E: Environment,
I: IntegerType,
Auto Trait Implementations§
impl<E, I> Freeze for Integer<E, I>where
I: Freeze,
impl<E, I> RefUnwindSafe for Integer<E, I>where
I: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, I> Send for Integer<E, I>
impl<E, I> Sync for Integer<E, I>
impl<E, I> Unpin for Integer<E, I>
impl<E, I> UnwindSafe for Integer<E, I>where
I: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
fn take_from_value<D>(
value: &mut Value,
field: &str,
) -> Result<T, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more