Trait tarrasque::Extract [−][src]
pub trait Extract<'a, P> { fn extract(stream: &mut Stream<'a>, _: P) -> ExtractResult<'a, Self>
where
Self: Sized; }
A type that can be extracted from a stream of bytes.
Required Methods
fn extract(stream: &mut Stream<'a>, _: P) -> ExtractResult<'a, Self> where
Self: Sized,
Self: Sized,
Extracts a value of this type from the supplied stream of bytes.
See Stream::extract
for usage information.
Implementors
impl<'a, T, P> Extract<'a, P> for [T; 1] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 2] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 3] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 4] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 5] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 6] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 7] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 8] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 9] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 10] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 11] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 12] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 13] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 14] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 15] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 16] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 17] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 18] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 19] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 20] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 21] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 22] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 23] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 24] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 25] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 26] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 27] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 28] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 29] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 30] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 31] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a, T, P> Extract<'a, P> for [T; 32] where
T: Copy + Default + Extract<'a, P>,
P: Copy,impl<'a> Extract<'a, ()> for u8
impl<'a> Extract<'a, ()> for i8
impl<'a> Extract<'a, ()> for u16
impl<'a> Extract<'a, Endianness> for u16
impl<'a> Extract<'a, ()> for u32
impl<'a> Extract<'a, Endianness> for u32
impl<'a> Extract<'a, ()> for u64
impl<'a> Extract<'a, Endianness> for u64
impl<'a> Extract<'a, ()> for i16
impl<'a> Extract<'a, Endianness> for i16
impl<'a> Extract<'a, ()> for i32
impl<'a> Extract<'a, Endianness> for i32
impl<'a> Extract<'a, ()> for i64
impl<'a> Extract<'a, Endianness> for i64
impl<'a> Extract<'a, ()> for f32
impl<'a> Extract<'a, Endianness> for f32
impl<'a> Extract<'a, ()> for f64
impl<'a> Extract<'a, Endianness> for f64
impl<'a, T, P> Extract<'a, (usize, P)> for View<'a, T, P> where
T: Extract<'a, P> + Span,
P: Copy,impl<'a> Extract<'a, ()> for &'a [u8]
impl<'a> Extract<'a, ()> for &'a str
impl<'a> Extract<'a, usize> for &'a [u8]
impl<'a> Extract<'a, usize> for &'a str