Trait core::slice::ImmutableIntSliceExperimental
[-]
[+]
[src]
pub trait ImmutableIntSlice<U, S> {
fn as_unsigned<'a>(&'a self) -> &'a [U];
fn as_signed<'a>(&'a self) -> &'a [S];
}Extension methods for immutable slices containing integers.
Required Methods
fn as_unsigned<'a>(&'a self) -> &'a [U]
Converts the slice to an immutable slice of unsigned integers with the same width.
fn as_signed<'a>(&'a self) -> &'a [S]
Converts the slice to an immutable slice of signed integers with the same width.
Implementors
impl ImmutableIntSlice<u8, i8> for [u8]impl ImmutableIntSlice<u8, i8> for [i8]impl ImmutableIntSlice<u16, i16> for [u16]impl ImmutableIntSlice<u16, i16> for [i16]impl ImmutableIntSlice<u32, i32> for [u32]impl ImmutableIntSlice<u32, i32> for [i32]impl ImmutableIntSlice<u64, i64> for [u64]impl ImmutableIntSlice<u64, i64> for [i64]impl ImmutableIntSlice<uint, int> for [uint]impl ImmutableIntSlice<uint, int> for [int]