Trait std::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];
}
Deprecated since 1.2.0

: has not seen much usage and may want to live in the standard library now that most slice methods are on an inherent implementation block

Extension methods for slices containing integers.

Required Methods

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

Deprecated since 1.2.0

: has not seen much usage and may want to live in the standard library now that most slice methods are on an inherent implementation block

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

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

Deprecated since 1.2.0

: has not seen much usage and may want to live in the standard library now that most slice methods are on an inherent implementation block

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

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

Deprecated since 1.2.0

: has not seen much usage and may want to live in the standard library now that most slice methods are on an inherent implementation block

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

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

Deprecated since 1.2.0

: has not seen much usage and may want to live in the standard library now that most slice methods are on an inherent implementation block

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

Implementors