Trait lexical_util::iterator::AsBytes

source ·
pub trait AsBytes<'a> {
    // Required method
    fn bytes<const __: u128>(&'a self) -> Bytes<'a, __>;
}
Expand description

Trait to simplify creation of a Bytes object.

Required Methods§

source

fn bytes<const __: u128>(&'a self) -> Bytes<'a, __>

Create Bytes from object.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> AsBytes<'a> for [u8]

source§

fn bytes<const __: u128>(&'a self) -> Bytes<'a, __>

Implementors§