pub unsafe trait RealStruct: Pod {
const SIZE: usize = _;
// Provided methods
fn cast(ptr: *const Real) -> *const Self { ... }
fn cast_mut(ptr: *mut Real) -> *mut Self { ... }
fn cast_slice(slice: &[Real]) -> &[Self] { ... }
fn cast_slice_mut(slice: &mut [Real]) -> &mut [Self] { ... }
}
Expand description
A structure that is composed entirely of real numbers.
Provided Associated Constants§
Provided Methods§
fn cast(ptr: *const Real) -> *const Self
fn cast_mut(ptr: *mut Real) -> *mut Self
fn cast_slice(slice: &[Real]) -> &[Self]
fn cast_slice_mut(slice: &mut [Real]) -> &mut [Self]
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.