pub struct PlainDecoder<T: DataType> { /* fields omitted */ }
Plain decoding that supports all types.
Values are encoded back to back. For native types, data is encoded as little endian.
Floating point types are encoded in IEEE.
See PlainDecoder
for more information.
Creates new plain decoder.
Sets the data to decode to be data
, which should contain num_values
of values to decode. Read more
Returns the number of values left in this decoder stream.
Returns the encoding for this decoder.
Consumes values from this decoder and write the results to buffer
. This will try to fill up buffer
. Read more
Consumes values from this decoder and write the results to buffer
. This will try to fill up buffer
. Read more
Sets the data to decode to be data
, which should contain num_values
of values to decode. Read more
Returns the number of values left in this decoder stream.
Returns the encoding for this decoder.
Sets the data to decode to be data
, which should contain num_values
of values to decode. Read more
Consumes values from this decoder and write the results to buffer
. This will try to fill up buffer
. Read more
Returns the number of values left in this decoder stream.
Returns the encoding for this decoder.
Consumes values from this decoder and write the results to buffer
. This will try to fill up buffer
. Read more
Sets the data to decode to be data
, which should contain num_values
of values to decode. Read more
Returns the number of values left in this decoder stream.
Returns the encoding for this decoder.
Consumes values from this decoder and write the results to buffer
. This will try to fill up buffer
. Read more
Sets the data to decode to be data
, which should contain num_values
of values to decode. Read more
Returns the number of values left in this decoder stream.
Returns the encoding for this decoder.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T, U> TryInto for T where U: TryFrom<T>, | |
type Err = <U as TryFrom<T>>::Err