Trait nom::Slice [−][src]
pub trait Slice<R> { fn slice(&self, range: R) -> Self; }
Slicing operations using ranges.
This trait is loosely based on
Index
, but can actually return
something else than a &[T]
or &str
pub trait Slice<R> { fn slice(&self, range: R) -> Self; }
Slicing operations using ranges.
This trait is loosely based on
Index
, but can actually return
something else than a &[T]
or &str
impl<'a> Slice<Range<usize>> for &'a str
[src]impl<'a> Slice<RangeFrom<usize>> for &'a str
[src]impl<'a> Slice<RangeFull> for &'a str
[src]impl<'a> Slice<RangeTo<usize>> for &'a str
[src]impl<'a, T> Slice<Range<usize>> for &'a [T]
[src]impl<'a, T> Slice<RangeFrom<usize>> for &'a [T]
[src]impl<'a, T> Slice<RangeFull> for &'a [T]
[src]impl<'a, T> Slice<RangeTo<usize>> for &'a [T]
[src]