[][src]Struct sbp::Take

pub struct Take;

A parser that takes an arbitrary amount of bytes.

Trait Implementations

impl<'a, T> Parser<'a, T> for Take where
    T: From<&'a [u8]>, 
[src]

type Error = BasicOutOfSpaceError

The error that the parsing can result in.

type Meta = usize

An arbitrary additional value provided, this will usually be (). When const generics comes, this probably won't be required. Read more

impl<'a, T> Serializer<'a, T> for Take where
    &'b T: AsRef<[u8]>, 
[src]

type Error = BasicOutOfSpaceError

The error that may occur when serializing.

type Meta = usize

An extra value provided, currently only meant and used for Take.

Auto Trait Implementations

impl Send for Take

impl Sync for Take

impl Unpin for Take

impl UnwindSafe for Take

impl RefUnwindSafe for Take

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]