Trait core::slice::IntSliceExt [] [src]

pub trait IntSliceExt<U, S> {
    fn as_unsigned<'a>(&'a self) -> &'a [U];
    fn as_signed<'a>(&'a self) -> &'a [S];
    fn as_unsigned_mut<'a>(&'a mut self) -> &'a mut [U];
    fn as_signed_mut<'a>(&'a mut self) -> &'a mut [S];
}
Unstable

Extension methods for slices containing integers.

Required Methods

fn as_unsigned<'a>(&'a self) -> &'a [U]

Unstable

Converts the slice to an immutable slice of unsigned integers with the same width.

fn as_signed<'a>(&'a self) -> &'a [S]

Unstable

Converts the slice to an immutable slice of signed integers with the same width.

fn as_unsigned_mut<'a>(&'a mut self) -> &'a mut [U]

Unstable

Converts the slice to a mutable slice of unsigned integers with the same width.

fn as_signed_mut<'a>(&'a mut self) -> &'a mut [S]

Unstable

Converts the slice to a mutable slice of signed integers with the same width.

Implementors