Struct handy_io::pattern::combinators::LE
[−]
[src]
pub struct LE<T>(pub T);
A pattern to indicates that "T is a little endian value".
This pattern is created by calling Endian::le
method.
Trait Implementations
impl<R: Read> ReadFrom<R> for LE<U16>
[src]
type Future = <Map<Buf<[u8; 2]>, fn(_: Buf<[u8; 2]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<R: Read> ReadFrom<R> for LE<I16>
[src]
type Future = <Map<Buf<[u8; 2]>, fn(_: Buf<[u8; 2]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<R: Read> ReadFrom<R> for LE<U24>
[src]
type Future = <Map<Buf<[u8; 3]>, fn(_: Buf<[u8; 3]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<R: Read> ReadFrom<R> for LE<I24>
[src]
type Future = <Map<Buf<[u8; 3]>, fn(_: Buf<[u8; 3]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<R: Read> ReadFrom<R> for LE<U32>
[src]
type Future = <Map<Buf<[u8; 4]>, fn(_: Buf<[u8; 4]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<R: Read> ReadFrom<R> for LE<I32>
[src]
type Future = <Map<Buf<[u8; 4]>, fn(_: Buf<[u8; 4]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<R: Read> ReadFrom<R> for LE<U40>
[src]
type Future = <Map<Buf<[u8; 5]>, fn(_: Buf<[u8; 5]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<R: Read> ReadFrom<R> for LE<I40>
[src]
type Future = <Map<Buf<[u8; 5]>, fn(_: Buf<[u8; 5]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<R: Read> ReadFrom<R> for LE<U48>
[src]
type Future = <Map<Buf<[u8; 6]>, fn(_: Buf<[u8; 6]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<R: Read> ReadFrom<R> for LE<I48>
[src]
type Future = <Map<Buf<[u8; 6]>, fn(_: Buf<[u8; 6]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<R: Read> ReadFrom<R> for LE<U56>
[src]
type Future = <Map<Buf<[u8; 7]>, fn(_: Buf<[u8; 7]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<R: Read> ReadFrom<R> for LE<I56>
[src]
type Future = <Map<Buf<[u8; 7]>, fn(_: Buf<[u8; 7]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<R: Read> ReadFrom<R> for LE<U64>
[src]
type Future = <Map<Buf<[u8; 8]>, fn(_: Buf<[u8; 8]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<R: Read> ReadFrom<R> for LE<I64>
[src]
type Future = <Map<Buf<[u8; 8]>, fn(_: Buf<[u8; 8]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<R: Read> ReadFrom<R> for LE<F32>
[src]
type Future = <Map<Buf<[u8; 4]>, fn(_: Buf<[u8; 4]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<R: Read> ReadFrom<R> for LE<F64>
[src]
type Future = <Map<Buf<[u8; 8]>, fn(_: Buf<[u8; 8]>::Value) -> Self::Value> as ReadFrom<R>>::Future
The future to read a value of the pattern from R
.
fn lossless_read_from(self, reader: R) -> Self::Future
Creates a future instance to read a value of the pattern from reader
.
fn read_from(self, reader: R) -> LossyReadFrom<R, Self::Future>
Creates a future instance to read a value of the pattern from reader
. Read more
fn sync_read_from(self, reader: R) -> Result<Self::Value>
Scynchronously reading a value of the pattern from reader
. Read more
fn boxed(self) -> BoxReadFrom<R, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<W: Write> WriteTo<W> for LE<u16>
[src]
type Future = <Map<Buf<[u8; 2]>, fn(_: Buf<[u8; 2]>::Value)> as WriteTo<W>>::Future
The future to write a value of the pattern to W
.
fn lossless_write_to(self, writer: W) -> Self::Future
Creates a future instance to write a value of the pattern to writer
.
fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
Creates a future instance to write a value of the pattern to writer
. Read more
fn sync_write_to(self, writer: W) -> Result<Self::Value>
Scynchronously writing a value of the pattern to writer
. Read more
fn boxed(self) -> BoxWriteTo<W, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<W: Write> WriteTo<W> for LE<i16>
[src]
type Future = <Map<Buf<[u8; 2]>, fn(_: Buf<[u8; 2]>::Value)> as WriteTo<W>>::Future
The future to write a value of the pattern to W
.
fn lossless_write_to(self, writer: W) -> Self::Future
Creates a future instance to write a value of the pattern to writer
.
fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
Creates a future instance to write a value of the pattern to writer
. Read more
fn sync_write_to(self, writer: W) -> Result<Self::Value>
Scynchronously writing a value of the pattern to writer
. Read more
fn boxed(self) -> BoxWriteTo<W, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<W: Write> WriteTo<W> for LE<U24>
[src]
type Future = <Map<Buf<[u8; 3]>, fn(_: Buf<[u8; 3]>::Value)> as WriteTo<W>>::Future
The future to write a value of the pattern to W
.
fn lossless_write_to(self, writer: W) -> Self::Future
Creates a future instance to write a value of the pattern to writer
.
fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
Creates a future instance to write a value of the pattern to writer
. Read more
fn sync_write_to(self, writer: W) -> Result<Self::Value>
Scynchronously writing a value of the pattern to writer
. Read more
fn boxed(self) -> BoxWriteTo<W, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<W: Write> WriteTo<W> for LE<I24>
[src]
type Future = <Map<Buf<[u8; 3]>, fn(_: Buf<[u8; 3]>::Value)> as WriteTo<W>>::Future
The future to write a value of the pattern to W
.
fn lossless_write_to(self, writer: W) -> Self::Future
Creates a future instance to write a value of the pattern to writer
.
fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
Creates a future instance to write a value of the pattern to writer
. Read more
fn sync_write_to(self, writer: W) -> Result<Self::Value>
Scynchronously writing a value of the pattern to writer
. Read more
fn boxed(self) -> BoxWriteTo<W, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<W: Write> WriteTo<W> for LE<u32>
[src]
type Future = <Map<Buf<[u8; 4]>, fn(_: Buf<[u8; 4]>::Value)> as WriteTo<W>>::Future
The future to write a value of the pattern to W
.
fn lossless_write_to(self, writer: W) -> Self::Future
Creates a future instance to write a value of the pattern to writer
.
fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
Creates a future instance to write a value of the pattern to writer
. Read more
fn sync_write_to(self, writer: W) -> Result<Self::Value>
Scynchronously writing a value of the pattern to writer
. Read more
fn boxed(self) -> BoxWriteTo<W, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<W: Write> WriteTo<W> for LE<i32>
[src]
type Future = <Map<Buf<[u8; 4]>, fn(_: Buf<[u8; 4]>::Value)> as WriteTo<W>>::Future
The future to write a value of the pattern to W
.
fn lossless_write_to(self, writer: W) -> Self::Future
Creates a future instance to write a value of the pattern to writer
.
fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
Creates a future instance to write a value of the pattern to writer
. Read more
fn sync_write_to(self, writer: W) -> Result<Self::Value>
Scynchronously writing a value of the pattern to writer
. Read more
fn boxed(self) -> BoxWriteTo<W, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<W: Write> WriteTo<W> for LE<U40>
[src]
type Future = <Map<Buf<[u8; 5]>, fn(_: Buf<[u8; 5]>::Value)> as WriteTo<W>>::Future
The future to write a value of the pattern to W
.
fn lossless_write_to(self, writer: W) -> Self::Future
Creates a future instance to write a value of the pattern to writer
.
fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
Creates a future instance to write a value of the pattern to writer
. Read more
fn sync_write_to(self, writer: W) -> Result<Self::Value>
Scynchronously writing a value of the pattern to writer
. Read more
fn boxed(self) -> BoxWriteTo<W, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<W: Write> WriteTo<W> for LE<I40>
[src]
type Future = <Map<Buf<[u8; 5]>, fn(_: Buf<[u8; 5]>::Value)> as WriteTo<W>>::Future
The future to write a value of the pattern to W
.
fn lossless_write_to(self, writer: W) -> Self::Future
Creates a future instance to write a value of the pattern to writer
.
fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
Creates a future instance to write a value of the pattern to writer
. Read more
fn sync_write_to(self, writer: W) -> Result<Self::Value>
Scynchronously writing a value of the pattern to writer
. Read more
fn boxed(self) -> BoxWriteTo<W, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<W: Write> WriteTo<W> for LE<U48>
[src]
type Future = <Map<Buf<[u8; 6]>, fn(_: Buf<[u8; 6]>::Value)> as WriteTo<W>>::Future
The future to write a value of the pattern to W
.
fn lossless_write_to(self, writer: W) -> Self::Future
Creates a future instance to write a value of the pattern to writer
.
fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
Creates a future instance to write a value of the pattern to writer
. Read more
fn sync_write_to(self, writer: W) -> Result<Self::Value>
Scynchronously writing a value of the pattern to writer
. Read more
fn boxed(self) -> BoxWriteTo<W, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<W: Write> WriteTo<W> for LE<I48>
[src]
type Future = <Map<Buf<[u8; 6]>, fn(_: Buf<[u8; 6]>::Value)> as WriteTo<W>>::Future
The future to write a value of the pattern to W
.
fn lossless_write_to(self, writer: W) -> Self::Future
Creates a future instance to write a value of the pattern to writer
.
fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
Creates a future instance to write a value of the pattern to writer
. Read more
fn sync_write_to(self, writer: W) -> Result<Self::Value>
Scynchronously writing a value of the pattern to writer
. Read more
fn boxed(self) -> BoxWriteTo<W, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<W: Write> WriteTo<W> for LE<U56>
[src]
type Future = <Map<Buf<[u8; 7]>, fn(_: Buf<[u8; 7]>::Value)> as WriteTo<W>>::Future
The future to write a value of the pattern to W
.
fn lossless_write_to(self, writer: W) -> Self::Future
Creates a future instance to write a value of the pattern to writer
.
fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
Creates a future instance to write a value of the pattern to writer
. Read more
fn sync_write_to(self, writer: W) -> Result<Self::Value>
Scynchronously writing a value of the pattern to writer
. Read more
fn boxed(self) -> BoxWriteTo<W, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<W: Write> WriteTo<W> for LE<I56>
[src]
type Future = <Map<Buf<[u8; 7]>, fn(_: Buf<[u8; 7]>::Value)> as WriteTo<W>>::Future
The future to write a value of the pattern to W
.
fn lossless_write_to(self, writer: W) -> Self::Future
Creates a future instance to write a value of the pattern to writer
.
fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
Creates a future instance to write a value of the pattern to writer
. Read more
fn sync_write_to(self, writer: W) -> Result<Self::Value>
Scynchronously writing a value of the pattern to writer
. Read more
fn boxed(self) -> BoxWriteTo<W, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<W: Write> WriteTo<W> for LE<u64>
[src]
type Future = <Map<Buf<[u8; 8]>, fn(_: Buf<[u8; 8]>::Value)> as WriteTo<W>>::Future
The future to write a value of the pattern to W
.
fn lossless_write_to(self, writer: W) -> Self::Future
Creates a future instance to write a value of the pattern to writer
.
fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
Creates a future instance to write a value of the pattern to writer
. Read more
fn sync_write_to(self, writer: W) -> Result<Self::Value>
Scynchronously writing a value of the pattern to writer
. Read more
fn boxed(self) -> BoxWriteTo<W, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<W: Write> WriteTo<W> for LE<i64>
[src]
type Future = <Map<Buf<[u8; 8]>, fn(_: Buf<[u8; 8]>::Value)> as WriteTo<W>>::Future
The future to write a value of the pattern to W
.
fn lossless_write_to(self, writer: W) -> Self::Future
Creates a future instance to write a value of the pattern to writer
.
fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
Creates a future instance to write a value of the pattern to writer
. Read more
fn sync_write_to(self, writer: W) -> Result<Self::Value>
Scynchronously writing a value of the pattern to writer
. Read more
fn boxed(self) -> BoxWriteTo<W, Self::Value> where
Self: Send + 'static,
Self::Future: Send + 'static,
Self: Send + 'static,
Self::Future: Send + 'static,
Returns the boxed version of this pattern.
impl<T: Debug> Debug for LE<T>
[src]
impl<T: Clone> Clone for LE<T>
[src]
fn clone(&self) -> LE<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T> Pattern for LE<T> where
T: Endian + Pattern,
[src]
T: Endian + Pattern,
type Value = T::Value
The value type associated to the pattern.
fn then<F, P>(self, f: F) -> Then<Self, F> where
F: FnOnce(Result<Self::Value>) -> P,
F: FnOnce(Result<Self::Value>) -> P,
Takes a closure which maps a Result<Self::Value>
to a pattern, and creates a pattern which calls that closure on the evaluation result of self
. Read more
fn and_then<F, P>(self, f: F) -> AndThen<Self, F> where
F: FnOnce(Self::Value) -> P,
F: FnOnce(Self::Value) -> P,
Takes a closure which maps a value to a pattern, and creates a pattern which calls that closure if the evaluation of self
was succeeded. Read more
fn or_else<F, P>(self, f: F) -> OrElse<Self, F> where
F: FnOnce(Error) -> P,
F: FnOnce(Error) -> P,
Takes a closure which maps an error to a pattern, and creates a pattern which calls that closure if the evaluation of self
failed. Read more
fn map<F, T>(self, f: F) -> Map<Self, F> where
F: FnOnce(Self::Value) -> T,
F: FnOnce(Self::Value) -> T,
Takes a closure which maps a value to another value, and creates a pattern which calls that closure on the evaluated value of self
. Read more
fn chain<P>(self, other: P) -> Chain<Self, P> where
P: Pattern,
P: Pattern,
Takes two patterns and creates a new pattern over both in sequence. Read more
fn repeat(self) -> Repeat<Self> where
Self: Clone,
Self: Clone,
Creates Repeat
pattern to represent an infinite stream of this pattern.