Trait lexical_util::iterator::AsBytes

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

Trait to simplify creation of a Bytes object.

Required Methods§

source

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

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 FORMAT: u128>(&'a self) -> Bytes<'a, FORMAT>

Implementors§