Trait collections::slice::ImmutableIntSliceExperimental [-]  [+] [src]

pub trait ImmutableIntSlice<U, S> {
    fn as_unsigned(&'a self) -> &'a [U];
    fn as_signed(&'a self) -> &'a [S];
}

Extension methods for immutable 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.

Implementors