Available on crate feature
core only.Expand description
A view into a sequence of values in memory.
Structs§
- NSTD
Slice - An immutable view into a sequence of values in memory.
- NSTD
Slice Mut - A view into a sequence of values in memory.
Functions§
- nstd_
core_ slice_ align - Returns the alignment of each value in a slice.
- nstd_
core_ slice_ as_ ptr - Returns a raw pointer to the slice’s memory.
- nstd_
core_ slice_ empty - Creates a new empty slice with a given
stride. - nstd_
core_ slice_ first - Returns an immutable pointer to the first element in the slice.
- nstd_
core_ slice_ get - Returns an immutable pointer to the element at index
posinslice. - nstd_
core_ slice_ last - Returns an immutable pointer to the last element in the slice.
- nstd_
core_ slice_ len - Returns the number of elements in an immutable slice.
- nstd_
core_ slice_ mut_ align - Returns the alignment of each value in a slice.
- nstd_
core_ slice_ mut_ as_ const - Creates an immutable version of a mutable slice.
- nstd_
core_ slice_ mut_ as_ ptr - Returns a raw pointer to the slice’s memory.
- nstd_
core_ slice_ mut_ as_ ptr_ const - Returns an immutable raw pointer to the slice’s memory.
- nstd_
core_ ⚠slice_ mut_ copy - Copies data into
destfromsrc. The number of bytes copied is determined bysrc. - nstd_
core_ slice_ mut_ empty - Creates a new empty slice with a given
stride. - nstd_
core_ slice_ mut_ first - Returns a pointer to the first element in the slice.
- nstd_
core_ slice_ mut_ first_ const - Returns an immutable pointer to the first element in the slice.
- nstd_
core_ slice_ mut_ get - Returns a pointer to the element at index
posinslice. - nstd_
core_ slice_ mut_ get_ const - Returns an immutable pointer to the element at index
posinslice. - nstd_
core_ slice_ mut_ last - Returns a pointer to the last element in the slice.
- nstd_
core_ slice_ mut_ last_ const - Returns an immutable pointer to the last element in the slice.
- nstd_
core_ slice_ mut_ len - Returns the number of elements in a slice.
- nstd_
core_ slice_ mut_ new - Creates a new slice from raw data.
- nstd_
core_ ⚠slice_ mut_ new_ unchecked - Creates a new slice from raw data without checking if
ptris null. - nstd_
core_ slice_ mut_ stride - Returns the amount of bytes each value in a slice occupies.
- nstd_
core_ slice_ new - Creates a new slice from raw data.
- nstd_
core_ ⚠slice_ new_ unchecked - Creates a new slice from raw data without checking if
ptris null. - nstd_
core_ slice_ stride - Returns the amount of bytes each value in a slice occupies.
Type Aliases§
- NSTD
Optional Slice - Represents an optional value of type
NSTDSlice. - NSTD
Optional Slice Mut - Represents an optional value of type
NSTDSliceMut.