BigEndian

Struct BigEndian 

Source
pub struct BigEndian<T: SpecificEndian<T>>(/* private fields */);
Expand description

A big-endian representation of type T that implements SpecificEndian<T>. Data stored in the struct must be converted to big-endian using ::from() or .into().

Implementations§

Source§

impl<T> BigEndian<T>
where T: SpecificEndian<T>,

Source

pub const fn to_bits(&self) -> T

Returns the raw data stored in the struct.

Source

pub const fn from_bits(v: T) -> Self

Imports the data raw into a BigEndian struct.

Source

pub fn to_native(&self) -> T

Converts the data to the same type T in host-native endian.

Trait Implementations§

Source§

impl<T> Add for BigEndian<T>
where T: Add<Output = T> + SpecificEndian<T>,

Available on crate feature math_ops only.
Source§

type Output = BigEndian<T>

The resulting type after applying the + operator.
Source§

fn add(self, other: Self) -> Self

Performs the + operation. Read more
Source§

impl<T> AddAssign for BigEndian<T>
where T: Add<Output = T> + SpecificEndian<T>,

Available on crate feature math_ops only.
Source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
Source§

impl<T: Binary + SpecificEndian<T>> Binary for BigEndian<T>

Available on crate feature format only.
Source§

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

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

impl BitAnd for BigEndian<bool>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

type Output = BigEndian<bool>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for BigEndian<i128>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i128>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for BigEndian<i16>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i16>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for BigEndian<i32>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i32>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for BigEndian<i64>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i64>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for BigEndian<i8>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

type Output = BigEndian<i8>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for BigEndian<isize>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<isize>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for BigEndian<u128>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u128>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for BigEndian<u16>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u16>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for BigEndian<u32>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u32>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for BigEndian<u64>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u64>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for BigEndian<u8>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

type Output = BigEndian<u8>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for BigEndian<usize>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<usize>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAndAssign for BigEndian<bool>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitAndAssign for BigEndian<i128>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitAndAssign for BigEndian<i16>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitAndAssign for BigEndian<i32>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitAndAssign for BigEndian<i64>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitAndAssign for BigEndian<i8>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitAndAssign for BigEndian<isize>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitAndAssign for BigEndian<u128>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitAndAssign for BigEndian<u16>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitAndAssign for BigEndian<u32>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitAndAssign for BigEndian<u64>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitAndAssign for BigEndian<u8>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitAndAssign for BigEndian<usize>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitOr for BigEndian<bool>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

type Output = BigEndian<bool>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitOr for BigEndian<i128>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i128>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitOr for BigEndian<i16>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i16>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitOr for BigEndian<i32>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i32>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitOr for BigEndian<i64>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i64>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitOr for BigEndian<i8>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

type Output = BigEndian<i8>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitOr for BigEndian<isize>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<isize>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitOr for BigEndian<u128>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u128>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitOr for BigEndian<u16>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u16>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitOr for BigEndian<u32>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u32>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitOr for BigEndian<u64>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u64>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitOr for BigEndian<u8>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

type Output = BigEndian<u8>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitOr for BigEndian<usize>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<usize>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitOrAssign for BigEndian<bool>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitOrAssign for BigEndian<i128>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitOrAssign for BigEndian<i16>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitOrAssign for BigEndian<i32>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitOrAssign for BigEndian<i64>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitOrAssign for BigEndian<i8>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitOrAssign for BigEndian<isize>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitOrAssign for BigEndian<u128>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitOrAssign for BigEndian<u16>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitOrAssign for BigEndian<u32>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitOrAssign for BigEndian<u64>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitOrAssign for BigEndian<u8>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitOrAssign for BigEndian<usize>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitXor for BigEndian<bool>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

type Output = BigEndian<bool>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for BigEndian<i128>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i128>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for BigEndian<i16>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i16>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for BigEndian<i32>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i32>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for BigEndian<i64>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i64>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for BigEndian<i8>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

type Output = BigEndian<i8>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for BigEndian<isize>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<isize>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for BigEndian<u128>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u128>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for BigEndian<u16>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u16>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for BigEndian<u32>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u32>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for BigEndian<u64>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u64>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for BigEndian<u8>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

type Output = BigEndian<u8>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for BigEndian<usize>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<usize>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXorAssign for BigEndian<bool>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for BigEndian<i128>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for BigEndian<i16>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for BigEndian<i32>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for BigEndian<i64>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for BigEndian<i8>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for BigEndian<isize>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for BigEndian<u128>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for BigEndian<u16>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for BigEndian<u32>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for BigEndian<u64>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for BigEndian<u8>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for BigEndian<usize>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl<T: Clone + SpecificEndian<T>> Clone for BigEndian<T>

Source§

fn clone(&self) -> BigEndian<T>

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<T: Debug + SpecificEndian<T>> Debug for BigEndian<T>

Source§

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

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

impl<T: Default + SpecificEndian<T>> Default for BigEndian<T>

Source§

fn default() -> BigEndian<T>

Returns the “default value” for a type. Read more
Source§

impl<T: Display + SpecificEndian<T>> Display for BigEndian<T>

Available on crate feature format only.
Source§

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

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

impl<T> Div for BigEndian<T>
where T: Div<Output = T> + SpecificEndian<T>,

Available on crate feature math_ops only.
Source§

type Output = BigEndian<T>

The resulting type after applying the / operator.
Source§

fn div(self, other: Self) -> Self

Performs the / operation. Read more
Source§

impl<T> DivAssign for BigEndian<T>
where T: Div<Output = T> + SpecificEndian<T>,

Available on crate feature math_ops only.
Source§

fn div_assign(&mut self, other: Self)

Performs the /= operation. Read more
Source§

impl<T> EndianRead for BigEndian<T>
where T: SpecificEndian<T> + Default + Copy + EndianRepr + 'static,

Available on crate feature io-std and (crate features io-core or io-std) only.
Source§

fn read_from<R: Read + ?Sized>(reader: &mut R) -> Result<Self>

Source§

impl<T> EndianWrite for BigEndian<T>
where T: SpecificEndian<T> + Copy + EndianRepr + 'static,

Available on crate feature io-std and (crate features io-core or io-std) only.
Source§

fn write_to<W: Write + ?Sized>(&self, writer: &mut W) -> Result<()>

Source§

impl<T: SpecificEndian<T>> From<BigEndian<T>> for LittleEndian<T>

Available on crate feature both_endian only.

Allow conversion directly from BigEndian<T> to LittleEndian<T> without manually going through native endian.

Source§

fn from(v: BigEndian<T>) -> LittleEndian<T>

Converts to this type from the input type.
Source§

impl From<BigEndian<bool>> for bool

Available on crate feature big_endian only.
Source§

fn from(v: BigEndian<bool>) -> bool

Converts to this type from the input type.
Source§

impl From<BigEndian<f32>> for f32

Available on crate feature big_endian only.
Source§

fn from(v: BigEndian<f32>) -> f32

Converts to this type from the input type.
Source§

impl From<BigEndian<f64>> for f64

Available on crate feature big_endian only.
Source§

fn from(v: BigEndian<f64>) -> f64

Converts to this type from the input type.
Source§

impl From<BigEndian<i128>> for i128

Available on crate feature big_endian only.
Source§

fn from(v: BigEndian<i128>) -> i128

Converts to this type from the input type.
Source§

impl From<BigEndian<i16>> for i16

Available on crate feature big_endian only.
Source§

fn from(v: BigEndian<i16>) -> i16

Converts to this type from the input type.
Source§

impl From<BigEndian<i32>> for i32

Available on crate feature big_endian only.
Source§

fn from(v: BigEndian<i32>) -> i32

Converts to this type from the input type.
Source§

impl From<BigEndian<i64>> for i64

Available on crate feature big_endian only.
Source§

fn from(v: BigEndian<i64>) -> i64

Converts to this type from the input type.
Source§

impl From<BigEndian<i8>> for i8

Available on crate feature big_endian only.
Source§

fn from(v: BigEndian<i8>) -> i8

Converts to this type from the input type.
Source§

impl From<BigEndian<isize>> for isize

Available on crate feature big_endian only.
Source§

fn from(v: BigEndian<isize>) -> isize

Converts to this type from the input type.
Source§

impl From<BigEndian<u128>> for u128

Available on crate feature big_endian only.
Source§

fn from(v: BigEndian<u128>) -> u128

Converts to this type from the input type.
Source§

impl From<BigEndian<u16>> for u16

Available on crate feature big_endian only.
Source§

fn from(v: BigEndian<u16>) -> u16

Converts to this type from the input type.
Source§

impl From<BigEndian<u32>> for u32

Available on crate feature big_endian only.
Source§

fn from(v: BigEndian<u32>) -> u32

Converts to this type from the input type.
Source§

impl From<BigEndian<u64>> for u64

Available on crate feature big_endian only.
Source§

fn from(v: BigEndian<u64>) -> u64

Converts to this type from the input type.
Source§

impl From<BigEndian<u8>> for u8

Available on crate feature big_endian only.
Source§

fn from(v: BigEndian<u8>) -> u8

Converts to this type from the input type.
Source§

impl From<BigEndian<usize>> for usize

Available on crate feature big_endian only.
Source§

fn from(v: BigEndian<usize>) -> usize

Converts to this type from the input type.
Source§

impl<T: SpecificEndian<T>> From<LittleEndian<T>> for BigEndian<T>

Available on crate feature both_endian only.

Allow conversion directly from LittleEndian<T> to BigEndian<T> without manually going through native endian.

Source§

fn from(v: LittleEndian<T>) -> BigEndian<T>

Converts to this type from the input type.
Source§

impl<T: SpecificEndian<T>> From<T> for BigEndian<T>

Source§

fn from(v: T) -> BigEndian<T>

Converts to this type from the input type.
Source§

impl<T> FromSlice for BigEndian<T>
where T: SpecificEndian<T> + Copy + EndianRepr,

Available on crate feature io-core and (crate features io-core or io-std) only.
Source§

fn read_from_slice(data: &[u8]) -> Result<Self, &'static str>

Source§

fn write_to_extend(&self, out: &mut impl Extend<u8>) -> Result<(), &'static str>

Source§

impl<T: Hash + SpecificEndian<T>> Hash for BigEndian<T>

Source§

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

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<T: LowerHex + SpecificEndian<T>> LowerHex for BigEndian<T>

Available on crate feature format only.
Source§

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

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

impl<T> Mul for BigEndian<T>
where T: Mul<Output = T> + SpecificEndian<T>,

Available on crate feature math_ops only.
Source§

type Output = BigEndian<T>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Self) -> Self

Performs the * operation. Read more
Source§

impl<T> MulAssign for BigEndian<T>
where T: Mul<Output = T> + SpecificEndian<T>,

Available on crate feature math_ops only.
Source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
Source§

impl<T> Neg for BigEndian<T>
where T: Neg<Output = T> + SpecificEndian<T>,

Available on crate feature neg_ops only.
Source§

type Output = BigEndian<T>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl Not for BigEndian<bool>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

type Output = BigEndian<bool>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for BigEndian<i128>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i128>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for BigEndian<i16>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i16>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for BigEndian<i32>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i32>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for BigEndian<i64>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<i64>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for BigEndian<i8>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

type Output = BigEndian<i8>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for BigEndian<isize>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<isize>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for BigEndian<u128>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u128>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for BigEndian<u16>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u16>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for BigEndian<u32>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u32>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for BigEndian<u64>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<u64>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for BigEndian<u8>

Available on crate features big_endian and byte_impls and bitwise only.
Source§

type Output = BigEndian<u8>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for BigEndian<usize>

Available on crate features big_endian and integer_impls and bitwise only.
Source§

type Output = BigEndian<usize>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<T: Octal + SpecificEndian<T>> Octal for BigEndian<T>

Available on crate feature format only.
Source§

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

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

impl<T> Ord for BigEndian<T>
where T: Ord + SpecificEndian<T>,

Available on crate feature comparisons only.
Source§

fn cmp(&self, other: &BigEndian<T>) -> 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<T: PartialEq + SpecificEndian<T>> PartialEq for BigEndian<T>

Source§

fn eq(&self, other: &BigEndian<T>) -> 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<T> PartialOrd for BigEndian<T>
where T: PartialOrd + SpecificEndian<T>,

Available on crate feature comparisons only.
Source§

fn partial_cmp(&self, other: &BigEndian<T>) -> 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 Shl for BigEndian<i128>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<i128>

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

fn shl(self, other: Self) -> Self

Performs the << operation. Read more
Source§

impl Shl for BigEndian<i16>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<i16>

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

fn shl(self, other: Self) -> Self

Performs the << operation. Read more
Source§

impl Shl for BigEndian<i32>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<i32>

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

fn shl(self, other: Self) -> Self

Performs the << operation. Read more
Source§

impl Shl for BigEndian<i64>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<i64>

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

fn shl(self, other: Self) -> Self

Performs the << operation. Read more
Source§

impl Shl for BigEndian<i8>

Available on crate features byte_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<i8>

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

fn shl(self, other: Self) -> Self

Performs the << operation. Read more
Source§

impl Shl for BigEndian<isize>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<isize>

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

fn shl(self, other: Self) -> Self

Performs the << operation. Read more
Source§

impl Shl for BigEndian<u128>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<u128>

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

fn shl(self, other: Self) -> Self

Performs the << operation. Read more
Source§

impl Shl for BigEndian<u16>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<u16>

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

fn shl(self, other: Self) -> Self

Performs the << operation. Read more
Source§

impl Shl for BigEndian<u32>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<u32>

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

fn shl(self, other: Self) -> Self

Performs the << operation. Read more
Source§

impl Shl for BigEndian<u64>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<u64>

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

fn shl(self, other: Self) -> Self

Performs the << operation. Read more
Source§

impl Shl for BigEndian<u8>

Available on crate features byte_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<u8>

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

fn shl(self, other: Self) -> Self

Performs the << operation. Read more
Source§

impl Shl for BigEndian<usize>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<usize>

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

fn shl(self, other: Self) -> Self

Performs the << operation. Read more
Source§

impl ShlAssign for BigEndian<i128>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shl_assign(&mut self, rhs: Self)

Performs the <<= operation. Read more
Source§

impl ShlAssign for BigEndian<i16>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shl_assign(&mut self, rhs: Self)

Performs the <<= operation. Read more
Source§

impl ShlAssign for BigEndian<i32>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shl_assign(&mut self, rhs: Self)

Performs the <<= operation. Read more
Source§

impl ShlAssign for BigEndian<i64>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shl_assign(&mut self, rhs: Self)

Performs the <<= operation. Read more
Source§

impl ShlAssign for BigEndian<i8>

Available on crate features byte_impls and big_endian and shift_ops only.
Source§

fn shl_assign(&mut self, rhs: Self)

Performs the <<= operation. Read more
Source§

impl ShlAssign for BigEndian<isize>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shl_assign(&mut self, rhs: Self)

Performs the <<= operation. Read more
Source§

impl ShlAssign for BigEndian<u128>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shl_assign(&mut self, rhs: Self)

Performs the <<= operation. Read more
Source§

impl ShlAssign for BigEndian<u16>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shl_assign(&mut self, rhs: Self)

Performs the <<= operation. Read more
Source§

impl ShlAssign for BigEndian<u32>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shl_assign(&mut self, rhs: Self)

Performs the <<= operation. Read more
Source§

impl ShlAssign for BigEndian<u64>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shl_assign(&mut self, rhs: Self)

Performs the <<= operation. Read more
Source§

impl ShlAssign for BigEndian<u8>

Available on crate features byte_impls and big_endian and shift_ops only.
Source§

fn shl_assign(&mut self, rhs: Self)

Performs the <<= operation. Read more
Source§

impl ShlAssign for BigEndian<usize>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shl_assign(&mut self, rhs: Self)

Performs the <<= operation. Read more
Source§

impl Shr for BigEndian<i128>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<i128>

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

fn shr(self, other: Self) -> Self

Performs the >> operation. Read more
Source§

impl Shr for BigEndian<i16>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<i16>

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

fn shr(self, other: Self) -> Self

Performs the >> operation. Read more
Source§

impl Shr for BigEndian<i32>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<i32>

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

fn shr(self, other: Self) -> Self

Performs the >> operation. Read more
Source§

impl Shr for BigEndian<i64>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<i64>

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

fn shr(self, other: Self) -> Self

Performs the >> operation. Read more
Source§

impl Shr for BigEndian<i8>

Available on crate features byte_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<i8>

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

fn shr(self, other: Self) -> Self

Performs the >> operation. Read more
Source§

impl Shr for BigEndian<isize>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<isize>

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

fn shr(self, other: Self) -> Self

Performs the >> operation. Read more
Source§

impl Shr for BigEndian<u128>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<u128>

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

fn shr(self, other: Self) -> Self

Performs the >> operation. Read more
Source§

impl Shr for BigEndian<u16>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<u16>

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

fn shr(self, other: Self) -> Self

Performs the >> operation. Read more
Source§

impl Shr for BigEndian<u32>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<u32>

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

fn shr(self, other: Self) -> Self

Performs the >> operation. Read more
Source§

impl Shr for BigEndian<u64>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<u64>

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

fn shr(self, other: Self) -> Self

Performs the >> operation. Read more
Source§

impl Shr for BigEndian<u8>

Available on crate features byte_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<u8>

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

fn shr(self, other: Self) -> Self

Performs the >> operation. Read more
Source§

impl Shr for BigEndian<usize>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

type Output = BigEndian<usize>

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

fn shr(self, other: Self) -> Self

Performs the >> operation. Read more
Source§

impl ShrAssign for BigEndian<i128>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shr_assign(&mut self, rhs: Self)

Performs the >>= operation. Read more
Source§

impl ShrAssign for BigEndian<i16>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shr_assign(&mut self, rhs: Self)

Performs the >>= operation. Read more
Source§

impl ShrAssign for BigEndian<i32>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shr_assign(&mut self, rhs: Self)

Performs the >>= operation. Read more
Source§

impl ShrAssign for BigEndian<i64>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shr_assign(&mut self, rhs: Self)

Performs the >>= operation. Read more
Source§

impl ShrAssign for BigEndian<i8>

Available on crate features byte_impls and big_endian and shift_ops only.
Source§

fn shr_assign(&mut self, rhs: Self)

Performs the >>= operation. Read more
Source§

impl ShrAssign for BigEndian<isize>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shr_assign(&mut self, rhs: Self)

Performs the >>= operation. Read more
Source§

impl ShrAssign for BigEndian<u128>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shr_assign(&mut self, rhs: Self)

Performs the >>= operation. Read more
Source§

impl ShrAssign for BigEndian<u16>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shr_assign(&mut self, rhs: Self)

Performs the >>= operation. Read more
Source§

impl ShrAssign for BigEndian<u32>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shr_assign(&mut self, rhs: Self)

Performs the >>= operation. Read more
Source§

impl ShrAssign for BigEndian<u64>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shr_assign(&mut self, rhs: Self)

Performs the >>= operation. Read more
Source§

impl ShrAssign for BigEndian<u8>

Available on crate features byte_impls and big_endian and shift_ops only.
Source§

fn shr_assign(&mut self, rhs: Self)

Performs the >>= operation. Read more
Source§

impl ShrAssign for BigEndian<usize>

Available on crate features integer_impls and big_endian and shift_ops only.
Source§

fn shr_assign(&mut self, rhs: Self)

Performs the >>= operation. Read more
Source§

impl<T> Sub for BigEndian<T>
where T: Sub<Output = T> + SpecificEndian<T>,

Available on crate feature math_ops only.
Source§

type Output = BigEndian<T>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Self) -> Self

Performs the - operation. Read more
Source§

impl<T> SubAssign for BigEndian<T>
where T: Sub<Output = T> + SpecificEndian<T>,

Available on crate feature math_ops only.
Source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
Source§

impl<const N: usize> TryFrom<&str> for BigEndian<FixedUtf16CodeUnits<N>>

Available on crate feature text_fixed and (crate features text_utf8 or text_utf16 or text_utf32 or text_fixed) and crate feature text_utf16 only.
Source§

type Error = FixedUtf16Error

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

fn try_from(s: &str) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<&str> for BigEndian<FixedUtf32CodeUnits<N>>

Available on crate feature text_fixed and (crate features text_utf8 or text_utf16 or text_utf32 or text_fixed) and crate feature text_utf32 only.
Source§

type Error = FixedUtf32Error

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

fn try_from(s: &str) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<String> for BigEndian<FixedUtf16CodeUnits<N>>

Available on crate feature text_fixed and (crate features text_utf8 or text_utf16 or text_utf32 or text_fixed) and crate feature text_utf16 only.
Source§

type Error = FixedUtf16Error

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

fn try_from(s: String) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<String> for BigEndian<FixedUtf32CodeUnits<N>>

Available on crate feature text_fixed and (crate features text_utf8 or text_utf16 or text_utf32 or text_fixed) and crate feature text_utf32 only.
Source§

type Error = FixedUtf32Error

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

fn try_from(s: String) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T: UpperHex + SpecificEndian<T>> UpperHex for BigEndian<T>

Available on crate feature format only.
Source§

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

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

impl<T: Copy + SpecificEndian<T>> Copy for BigEndian<T>

Source§

impl<T: Eq + SpecificEndian<T>> Eq for BigEndian<T>

Source§

impl<T: SpecificEndian<T>> StructuralPartialEq for BigEndian<T>

Auto Trait Implementations§

§

impl<T> Freeze for BigEndian<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for BigEndian<T>
where T: RefUnwindSafe,

§

impl<T> Send for BigEndian<T>
where T: Send,

§

impl<T> Sync for BigEndian<T>
where T: Sync,

§

impl<T> Unpin for BigEndian<T>
where T: Unpin,

§

impl<T> UnwindSafe for BigEndian<T>
where T: UnwindSafe,

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> 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> 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> 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.