Primitive Type slice
Slice management and manipulation
For more details std::slice.
Trait Implementations
impl<'a, T> Clone for &'a [T]
fn clone(&self) -> &'a [T]
Return a shallow copy of the slice.
fn clone_from(&mut self, source: &Self)
impl<'a, T> Repr<Slice<T>> for &'a [T]
impl<'a, T: Eq> Eq for &'a [T]
impl<'a, T: Ord> Ord for &'a [T]
impl<'a, T> Vector<T> for &'a [T]
Returns the length of a vector
fn slice(&self, start: uint, end: uint) -> &'a [T]
fn iter(self) -> Items<'a, T>
fn split(self, pred: |&T|: 'a -> bool) -> Splits<'a, T>
fn splitn(self, n: uint, pred: |&T|: 'a -> bool) -> SplitsN<'a, T>
fn rsplitn(self, n: uint, pred: |&T|: 'a -> bool) -> SplitsN<'a, T>
fn get(&self, index: uint) -> Option<&'a T>
fn head(&self) -> Option<&'a T>
fn tail(&self) -> &'a [T]
fn init(&self) -> &'a [T]
fn last(&self) -> Option<&'a T>
unsafe fn unsafe_ref(self, index: uint) -> &'a T
fn as_ptr(&self) -> *T
impl<'a, T> Default for &'a [T]
impl<'a, T: Show> Show for &'a [T]
impl<'a, T: Show> Show for &'a mut [T]
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct (or str), enum,
trait, typedef (or
tdef).