Trait numtoa::NumToA
[−]
[src]
pub trait NumToA<T> { fn numtoa(self, base: T, string: &mut [u8]) -> usize; }
Converts a number into a string representation, storing the conversion into a mutable byte slice.
Required Methods
fn numtoa(self, base: T, string: &mut [u8]) -> usize
Given a base for encoding and a mutable byte slice, write the number into the byte slice and return the amount of bytes that were written.
Panics
If the supplied buffer is smaller than the number of bytes needed to write the integer, this will panic.
Implementors
impl NumToA<i16> for i16
impl NumToA<i32> for i32
impl NumToA<i64> for i64
impl NumToA<isize> for isize
impl NumToA<u16> for u16
impl NumToA<u32> for u32
impl NumToA<u64> for u64
impl NumToA<usize> for usize
impl NumToA<i8> for i8
impl NumToA<u8> for u8