logo
pub trait Slices: GetSexp {
    unsafe fn as_typed_slice_raw<T>(&self) -> &[T]Notable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8] { ... }
    unsafe fn as_typed_slice_raw_mut<T>(&mut self) -> &mut [T]Notable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8] { ... }
}

Provided methods

Get an immutable slice to this object’s data.

Safety

Unless the type is correct, this will cause undefined behaviour. Creating this slice will also instatiate and Altrep objects.

Get a mutable slice to this object’s data.

Safety

Unless the type is correct, this will cause undefined behaviour. Creating this slice will also instatiate and Altrep objects. Not all obejects (especially not list and strings) support this.

Implementors

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.

as_typed_slice_raw() etc.