BitVec

Enum BitVec 

Source
pub enum BitVec {
    N(BitVec),
    U(BitVec),
}

Variants§

Implementations§

Source§

impl BitVec

Source§

impl BitVec

Source

pub fn from_bigint(v: Integer, bits: usize) -> BitVec

Source

pub fn as_bigint(&self) -> Cow<'_, Integer>

Source

pub fn as_raw(&self) -> Cow<'_, Integer>

Source

pub fn zero(bits: usize) -> BitVec

Source

pub fn one(bits: usize) -> BitVec

Source

pub fn count_ones(&self) -> u32

Source

pub fn count_zeros(&self) -> u32

Source

pub fn leading_ones(&self) -> u32

Source

pub fn leading_zeros(&self) -> u32

Source

pub fn bits(&self) -> usize

Source

pub fn signed(self) -> BitVec

Source

pub fn signed_assign(&mut self)

Source

pub fn is_zero(&self) -> bool

Source

pub fn is_one(&self) -> bool

Source

pub fn is_signed(&self) -> bool

Source

pub fn is_negative(&self) -> bool

Source

pub fn unsigned(self) -> BitVec

Source

pub fn unsigned_assign(&mut self)

Source

pub fn is_unsigned(&self) -> bool

Source

pub fn bit(&self, index: u32) -> bool

Source

pub fn set_bit(&mut self, index: u32)

Source

pub fn leading_one(&self) -> Option<u32>

Source

pub fn msb(&self) -> bool

Source

pub fn lsb(&self) -> bool

Source

pub fn from_be_bytes(buf: &[u8]) -> BitVec

Source

pub fn from_le_bytes(buf: &[u8]) -> BitVec

Source

pub fn from_ne_bytes(buf: &[u8]) -> BitVec

Source

pub fn to_be_bytes(&self, buf: &mut [u8])

Source

pub fn to_le_bytes(&self, buf: &mut [u8])

Source

pub fn to_ne_bytes(&self, buf: &mut [u8])

Source

pub fn from_bytes<O>(bytes: &[u8], signed: bool) -> BitVec
where O: Order,

Source

pub fn into_bytes<O>(self, bytes: &mut [u8])
where O: Order,

Source

pub fn incr(&self, value: u64) -> BitVec

Source

pub fn succ(&self) -> BitVec

Source

pub fn decr(&self, value: u64) -> BitVec

Source

pub fn pred(&self) -> BitVec

Source

pub fn abs(&self) -> BitVec

Source

pub fn lcm(&self, rhs: &BitVec) -> BitVec

Source

pub fn gcd(&self, rhs: &BitVec) -> BitVec

Source

pub fn gcd_ext(&self, rhs: &BitVec) -> (BitVec, BitVec, BitVec)

Source

pub fn signed_borrow(&self, rhs: &BitVec) -> bool

Source

pub fn carry(&self, rhs: &BitVec) -> bool

Source

pub fn signed_carry(&self, rhs: &BitVec) -> bool

Source

pub fn rem_euclid(&self, rhs: &BitVec) -> BitVec

Source

pub fn max_value_with(bits: usize, signed: bool) -> BitVec

Source

pub fn max_value(&self) -> BitVec

Source

pub fn min_value_with(bits: usize, signed: bool) -> BitVec

Source

pub fn min_value(&self) -> BitVec

Source

pub fn signed_cast(&self, size: usize) -> BitVec

Source

pub fn unsigned_cast(&self, size: usize) -> BitVec

Source

pub fn signed_cast_assign(&mut self, bits: usize)

Source

pub fn unsigned_cast_assign(&mut self, bits: usize)

Source

pub fn cast(self, size: usize) -> BitVec

Source

pub fn cast_assign(&mut self, size: usize)

Source§

impl BitVec

Source

pub fn signed_cmp(&self, other: &BitVec) -> Ordering

Source§

impl BitVec

Source

pub fn neg_assign(&mut self)

Source§

impl BitVec

Source

pub fn not_assign(&mut self)

Source§

impl BitVec

Source

pub fn signed_div(&self, rhs: &BitVec) -> BitVec

Source

pub fn signed_div_assign(&mut self, rhs: &BitVec)

Source§

impl BitVec

Source

pub fn signed_rem(&self, rhs: &BitVec) -> BitVec

Source

pub fn signed_rem_assign(&mut self, rhs: &BitVec)

Source§

impl BitVec

Source

pub fn signed_shr(&self, rhs: &BitVec) -> BitVec

Source

pub fn signed_shr_assign(&mut self, rhs: &BitVec)

Source§

impl BitVec

Source

pub fn from_i8(t: i8, bits: usize) -> BitVec

Source§

impl BitVec

Source

pub fn from_i16(t: i16, bits: usize) -> BitVec

Source§

impl BitVec

Source

pub fn from_i32(t: i32, bits: usize) -> BitVec

Source§

impl BitVec

Source

pub fn from_i64(t: i64, bits: usize) -> BitVec

Source§

impl BitVec

Source

pub fn from_i128(t: i128, bits: usize) -> BitVec

Source§

impl BitVec

Source

pub fn from_isize(t: isize, bits: usize) -> BitVec

Source§

impl BitVec

Source

pub fn from_u8(t: u8, bits: usize) -> BitVec

Source§

impl BitVec

Source

pub fn from_u16(t: u16, bits: usize) -> BitVec

Source§

impl BitVec

Source

pub fn from_u32(t: u32, bits: usize) -> BitVec

Source§

impl BitVec

Source

pub fn from_u64(t: u64, bits: usize) -> BitVec

Source§

impl BitVec

Source

pub fn from_u128(t: u128, bits: usize) -> BitVec

Source§

impl BitVec

Source

pub fn from_usize(t: usize, bits: usize) -> BitVec

Source§

impl BitVec

Source

pub fn to_i8(&self) -> Option<i8>

Source§

impl BitVec

Source

pub fn to_i16(&self) -> Option<i16>

Source§

impl BitVec

Source

pub fn to_i32(&self) -> Option<i32>

Source§

impl BitVec

Source

pub fn to_i64(&self) -> Option<i64>

Source§

impl BitVec

Source

pub fn to_i128(&self) -> Option<i128>

Source§

impl BitVec

Source

pub fn to_isize(&self) -> Option<isize>

Source§

impl BitVec

Source

pub fn to_u8(&self) -> Option<u8>

Source§

impl BitVec

Source

pub fn to_u16(&self) -> Option<u16>

Source§

impl BitVec

Source

pub fn to_u32(&self) -> Option<u32>

Source§

impl BitVec

Source

pub fn to_u64(&self) -> Option<u64>

Source§

impl BitVec

Source

pub fn to_u128(&self) -> Option<u128>

Source§

impl BitVec

Source

pub fn to_usize(&self) -> Option<usize>

Trait Implementations§

Source§

impl<'a> Add for &'a BitVec

Source§

type Output = BitVec

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a BitVec) -> <&'a BitVec as Add>::Output

Performs the + operation. Read more
Source§

impl Add for BitVec

Source§

type Output = BitVec

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BitVec) -> <BitVec as Add>::Output

Performs the + operation. Read more
Source§

impl AddAssign<&BitVec> for BitVec

Source§

fn add_assign(&mut self, rhs: &BitVec)

Performs the += operation. Read more
Source§

impl AddAssign for BitVec

Source§

fn add_assign(&mut self, rhs: BitVec)

Performs the += operation. Read more
Source§

impl Binary for BitVec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'a> BitAnd for &'a BitVec

Source§

type Output = BitVec

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'a BitVec) -> <&'a BitVec as BitAnd>::Output

Performs the & operation. Read more
Source§

impl BitAnd for BitVec

Source§

type Output = BitVec

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BitVec) -> <BitVec as BitAnd>::Output

Performs the & operation. Read more
Source§

impl BitAndAssign<&BitVec> for BitVec

Source§

fn bitand_assign(&mut self, rhs: &BitVec)

Performs the &= operation. Read more
Source§

impl BitAndAssign for BitVec

Source§

fn bitand_assign(&mut self, rhs: BitVec)

Performs the &= operation. Read more
Source§

impl<'a> BitOr for &'a BitVec

Source§

type Output = BitVec

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'a BitVec) -> <&'a BitVec as BitOr>::Output

Performs the | operation. Read more
Source§

impl BitOr for BitVec

Source§

type Output = BitVec

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BitVec) -> <BitVec as BitOr>::Output

Performs the | operation. Read more
Source§

impl BitOrAssign<&BitVec> for BitVec

Source§

fn bitor_assign(&mut self, rhs: &BitVec)

Performs the |= operation. Read more
Source§

impl BitOrAssign for BitVec

Source§

fn bitor_assign(&mut self, rhs: BitVec)

Performs the |= operation. Read more
Source§

impl BitSize for BitVec

Source§

fn bits(&self) -> usize

Source§

impl<'a> BitXor for &'a BitVec

Source§

type Output = BitVec

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'a BitVec) -> <&'a BitVec as BitXor>::Output

Performs the ^ operation. Read more
Source§

impl BitXor for BitVec

Source§

type Output = BitVec

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BitVec) -> <BitVec as BitXor>::Output

Performs the ^ operation. Read more
Source§

impl BitXorAssign<&BitVec> for BitVec

Source§

fn bitxor_assign(&mut self, rhs: &BitVec)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for BitVec

Source§

fn bitxor_assign(&mut self, rhs: BitVec)

Performs the ^= operation. Read more
Source§

impl Clone for BitVec

Source§

fn clone(&self) -> BitVec

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BitVec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for BitVec

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<BitVec, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for BitVec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'a> Div for &'a BitVec

Source§

type Output = BitVec

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &'a BitVec) -> <&'a BitVec as Div>::Output

Performs the / operation. Read more
Source§

impl Div for BitVec

Source§

type Output = BitVec

The resulting type after applying the / operator.
Source§

fn div(self, rhs: BitVec) -> <BitVec as Div>::Output

Performs the / operation. Read more
Source§

impl DivAssign<&BitVec> for BitVec

Source§

fn div_assign(&mut self, rhs: &BitVec)

Performs the /= operation. Read more
Source§

impl DivAssign for BitVec

Source§

fn div_assign(&mut self, rhs: BitVec)

Performs the /= operation. Read more
Source§

impl From<BitVec> for BitVec

Source§

fn from(bv: BitVec) -> BitVec

Converts to this type from the input type.
Source§

impl From<BitVec> for BitVec

Source§

fn from(bv: BitVec) -> BitVec

Converts to this type from the input type.
Source§

impl From<i128> for BitVec

Source§

fn from(t: i128) -> BitVec

Converts to this type from the input type.
Source§

impl From<i16> for BitVec

Source§

fn from(t: i16) -> BitVec

Converts to this type from the input type.
Source§

impl From<i32> for BitVec

Source§

fn from(t: i32) -> BitVec

Converts to this type from the input type.
Source§

impl From<i64> for BitVec

Source§

fn from(t: i64) -> BitVec

Converts to this type from the input type.
Source§

impl From<i8> for BitVec

Source§

fn from(t: i8) -> BitVec

Converts to this type from the input type.
Source§

impl From<isize> for BitVec

Source§

fn from(t: isize) -> BitVec

Converts to this type from the input type.
Source§

impl From<u128> for BitVec

Source§

fn from(t: u128) -> BitVec

Converts to this type from the input type.
Source§

impl From<u16> for BitVec

Source§

fn from(t: u16) -> BitVec

Converts to this type from the input type.
Source§

impl From<u32> for BitVec

Source§

fn from(t: u32) -> BitVec

Converts to this type from the input type.
Source§

impl From<u64> for BitVec

Source§

fn from(t: u64) -> BitVec

Converts to this type from the input type.
Source§

impl From<u8> for BitVec

Source§

fn from(t: u8) -> BitVec

Converts to this type from the input type.
Source§

impl From<usize> for BitVec

Source§

fn from(t: usize) -> BitVec

Converts to this type from the input type.
Source§

impl FromStr for BitVec

Source§

type Err = ParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<BitVec, <BitVec as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for BitVec

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IntoAddress for &BitVec

Source§

impl IntoAddress for BitVec

Source§

impl LowerHex for BitVec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'a> Mul for &'a BitVec

Source§

type Output = BitVec

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a BitVec) -> <&'a BitVec as Mul>::Output

Performs the * operation. Read more
Source§

impl Mul for BitVec

Source§

type Output = BitVec

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BitVec) -> <BitVec as Mul>::Output

Performs the * operation. Read more
Source§

impl MulAssign<&BitVec> for BitVec

Source§

fn mul_assign(&mut self, rhs: &BitVec)

Performs the *= operation. Read more
Source§

impl MulAssign for BitVec

Source§

fn mul_assign(&mut self, rhs: BitVec)

Performs the *= operation. Read more
Source§

impl<'a> Neg for &'a BitVec

Source§

type Output = BitVec

The resulting type after applying the - operator.
Source§

fn neg(self) -> <&'a BitVec as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for BitVec

Source§

type Output = BitVec

The resulting type after applying the - operator.
Source§

fn neg(self) -> <BitVec as Neg>::Output

Performs the unary - operation. Read more
Source§

impl<'a> Not for &'a BitVec

Source§

type Output = BitVec

The resulting type after applying the ! operator.
Source§

fn not(self) -> <&'a BitVec as Not>::Output

Performs the unary ! operation. Read more
Source§

impl Not for BitVec

Source§

type Output = BitVec

The resulting type after applying the ! operator.
Source§

fn not(self) -> <BitVec as Not>::Output

Performs the unary ! operation. Read more
Source§

impl Ord for BitVec

Source§

fn cmp(&self, other: &BitVec) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for BitVec

Source§

fn eq(&self, other: &BitVec) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for BitVec

Source§

fn partial_cmp(&self, other: &BitVec) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<'a> Rem for &'a BitVec

Source§

type Output = BitVec

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &'a BitVec) -> <&'a BitVec as Rem>::Output

Performs the % operation. Read more
Source§

impl Rem for BitVec

Source§

type Output = BitVec

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: BitVec) -> <BitVec as Rem>::Output

Performs the % operation. Read more
Source§

impl RemAssign<&BitVec> for BitVec

Source§

fn rem_assign(&mut self, rhs: &BitVec)

Performs the %= operation. Read more
Source§

impl RemAssign for BitVec

Source§

fn rem_assign(&mut self, rhs: BitVec)

Performs the %= operation. Read more
Source§

impl Serialize for BitVec

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'a> Shl<u32> for &'a BitVec

Source§

type Output = BitVec

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> <&'a BitVec as Shl<u32>>::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for BitVec

Source§

type Output = BitVec

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> <BitVec as Shl<u32>>::Output

Performs the << operation. Read more
Source§

impl<'a> Shl for &'a BitVec

Source§

type Output = BitVec

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'a BitVec) -> <&'a BitVec as Shl>::Output

Performs the << operation. Read more
Source§

impl Shl for BitVec

Source§

type Output = BitVec

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: BitVec) -> <BitVec as Shl>::Output

Performs the << operation. Read more
Source§

impl ShlAssign<&BitVec> for BitVec

Source§

fn shl_assign(&mut self, rhs: &BitVec)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for BitVec

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign for BitVec

Source§

fn shl_assign(&mut self, rhs: BitVec)

Performs the <<= operation. Read more
Source§

impl<'a> Shr<u32> for &'a BitVec

Source§

type Output = BitVec

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> <&'a BitVec as Shr<u32>>::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for BitVec

Source§

type Output = BitVec

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> <BitVec as Shr<u32>>::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr for &'a BitVec

Source§

type Output = BitVec

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'a BitVec) -> <&'a BitVec as Shr>::Output

Performs the >> operation. Read more
Source§

impl Shr for BitVec

Source§

type Output = BitVec

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: BitVec) -> <BitVec as Shr>::Output

Performs the >> operation. Read more
Source§

impl ShrAssign<&BitVec> for BitVec

Source§

fn shr_assign(&mut self, rhs: &BitVec)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for BitVec

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign for BitVec

Source§

fn shr_assign(&mut self, rhs: BitVec)

Performs the >>= operation. Read more
Source§

impl<'a> Sub for &'a BitVec

Source§

type Output = BitVec

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a BitVec) -> <&'a BitVec as Sub>::Output

Performs the - operation. Read more
Source§

impl Sub for BitVec

Source§

type Output = BitVec

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BitVec) -> <BitVec as Sub>::Output

Performs the - operation. Read more
Source§

impl SubAssign<&BitVec> for BitVec

Source§

fn sub_assign(&mut self, rhs: &BitVec)

Performs the -= operation. Read more
Source§

impl SubAssign for BitVec

Source§

fn sub_assign(&mut self, rhs: BitVec)

Performs the -= operation. Read more
Source§

impl<'v, 't> TranslatorDisplay<'v, 't> for BitVec

Source§

type Target = BitVecFormatter<'v, 't>

Source§

fn display_full( &'v self, fmt: Cow<'t, TranslatorFormatter<'t>>, ) -> <BitVec as TranslatorDisplay<'v, 't>>::Target

Source§

fn display_with(&'v self, translator: Option<&'t Translator>) -> Self::Target

Source§

impl UpperHex for BitVec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for BitVec

Auto Trait Implementations§

§

impl Freeze for BitVec

§

impl RefUnwindSafe for BitVec

§

impl Send for BitVec

§

impl Sync for BitVec

§

impl Unpin for BitVec

§

impl UnwindSafe for BitVec

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CallHasher for T
where T: Hash + ?Sized,

Source§

default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64
where H: Hash + ?Sized, B: BuildHasher,

Source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<'z, T, U> IntoSpace<'z, T> for U
where T: FromSpace<'z, U>,

Source§

fn into_space(self, manager: &SpaceManager) -> T

Source§

fn into_space_with(self, arena: &'z IRBuilderArena, manager: &SpaceManager) -> T

Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,