#[repr(transparent)]pub struct cast<T>(pub T);
Tuple Fields§
§0: T
Implementations§
Source§impl cast<i8>
impl cast<i8>
pub const fn to_unsigned(self) -> u8
pub const fn to_i32_sign_extend(self) -> i32
pub const fn to_i64_sign_extend(self) -> i64
Source§impl cast<i16>
impl cast<i16>
pub const fn to_unsigned(self) -> u16
pub const fn to_i32_sign_extend(self) -> i32
pub const fn to_i64_sign_extend(self) -> i64
Source§impl cast<i32>
impl cast<i32>
pub const fn to_unsigned(self) -> u32
pub const fn to_i64_sign_extend(self) -> i64
Source§impl cast<u64>
impl cast<u64>
pub const fn assert_always_fits_in_u32(self) -> u32
pub const fn to_signed(self) -> i64
pub const fn truncate_to_u8(self) -> u8
pub const fn truncate_to_u16(self) -> u16
pub const fn truncate_to_u32(self) -> u32
Auto Trait Implementations§
impl<T> Freeze for cast<T>where
T: Freeze,
impl<T> RefUnwindSafe for cast<T>where
T: RefUnwindSafe,
impl<T> Send for cast<T>where
T: Send,
impl<T> Sync for cast<T>where
T: Sync,
impl<T> Unpin for cast<T>where
T: Unpin,
impl<T> UnwindSafe for cast<T>where
T: 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
Mutably borrows from an owned value. Read more