Trait amq_protocol::frame::parsing::traits::InputTake [−][src]
Abstracts slicing operations
Required methods
pub fn take(&self, count: usize) -> Self
[src]
Returns a slice of count
bytes. panics if count > length
pub fn take_split(&self, count: usize) -> (Self, Self)
[src]
Split the stream at the count
byte offset. panics if count > length
Implementations on Foreign Types
impl<'a> InputTake for &'a str
[src]
pub fn take(&self, count: usize) -> &'a str
[src]
pub fn take_split(&self, count: usize) -> (&'a str, &'a str)
[src]
impl<'a> InputTake for &'a [u8]
[src]
pub fn take(&self, count: usize) -> &'a [u8]
[src]
pub fn take_split(&self, count: usize) -> (&'a [u8], &'a [u8])
[src]
impl<'a, O, T> InputTake for &'a BitSlice<O, T> where
T: 'a + BitStore,
O: BitOrder,
[src]
T: 'a + BitStore,
O: BitOrder,
pub fn take(&self, count: usize) -> &'a BitSlice<O, T>
[src]
pub fn take_split(
&self,
count: usize
) -> (&'a BitSlice<O, T>, &'a BitSlice<O, T>)
[src]
&self,
count: usize
) -> (&'a BitSlice<O, T>, &'a BitSlice<O, T>)