Trait RealStruct

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

Source

const SIZE: usize = _

Provided Methods§

Source

fn cast(ptr: *const Real) -> *const Self

Source

fn cast_mut(ptr: *mut Real) -> *mut Self

Source

fn cast_slice(slice: &[Real]) -> &[Self]

Source

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.

Implementors§