Trait collections::slice::IntSliceExt
[−]
[src]
pub trait IntSliceExt<U, S> { fn as_unsigned(&'a self) -> &'a [U]; fn as_signed(&'a self) -> &'a [S]; fn as_unsigned_mut(&'a mut self) -> &'a mut [U]; fn as_signed_mut(&'a mut self) -> &'a mut [S]; }
Extension methods for slices containing integers.
Required Methods
fn as_unsigned(&'a self) -> &'a [U]
Converts the slice to an immutable slice of unsigned integers with the same width.
fn as_signed(&'a self) -> &'a [S]
Converts the slice to an immutable slice of signed integers with the same width.
fn as_unsigned_mut(&'a mut self) -> &'a mut [U]
Converts the slice to a mutable slice of unsigned integers with the same width.
fn as_signed_mut(&'a mut self) -> &'a mut [S]
Converts the slice to a mutable slice of signed integers with the same width.
Implementors
impl IntSliceExt<u8, i8> for [u8]
impl IntSliceExt<u8, i8> for [i8]
impl IntSliceExt<u16, i16> for [u16]
impl IntSliceExt<u16, i16> for [i16]
impl IntSliceExt<u32, i32> for [u32]
impl IntSliceExt<u32, i32> for [i32]
impl IntSliceExt<u64, i64> for [u64]
impl IntSliceExt<u64, i64> for [i64]
impl IntSliceExt<usize, isize> for [usize]
impl IntSliceExt<usize, isize> for [isize]