#[repr(C)]
pub union Word {
pub data: i32,
pub float: f32,
pub ptr_data: isize,
pub ptr: *mut (),
}
Fields§
§data: i32
§float: f32
Available on crate feature
§floats
only.ptr_data: isize
§ptr: *mut ()
Implementations§
Trait Implementations§
impl Copy for Word
Auto Trait Implementations§
impl Freeze for Word
impl RefUnwindSafe for Word
impl !Send for Word
impl !Sync for Word
impl Unpin for Word
impl UnwindSafe for Word
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)