pub enum Reference<'de, 'short> {
    Long(&'de [u8]),
    Short(&'short [u8]),
}
Expand description

Bytes reference

Variants

Long(&'de [u8])

If the reader can return bytes as long as its lifetime, then zero-copy decoding will be allowed.

Short(&'short [u8])

Bytes returned normally

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.