Trait std::get_slice::GetSlice
[−]
[src]
pub trait GetSlice { fn get_slice(&self, a: Option<usize>, b: Option<usize>) -> &Self; }
Bounded slice abstraction
Code Migration
foo[a..b]
=> foo.get_slice(Some(a), Some(b))
foo[a..]
=> foo.get_slice(Some(a), None)
foo[..b]
=> foo.get_slice(None, Some(b))