Trait bs58::encode::EncodeTarget [−][src]
Represents a buffer that can be encoded into. See EncodeBuilder::into
and the provided
implementations for more details.
Required methods
fn encode_with(
&mut self,
max_len: usize,
f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>
) -> Result<usize>
[src]
&mut self,
max_len: usize,
f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>
) -> Result<usize>
Encodes into this buffer, provides the maximum length for implementations that wish to preallocate space, along with a function that will encode ASCII bytes into the buffer and return the length written to it.
Implementations on Foreign Types
impl<T: EncodeTarget + ?Sized> EncodeTarget for &mut T
[src]
fn encode_with(
&mut self,
max_len: usize,
f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>
) -> Result<usize>
[src]
&mut self,
max_len: usize,
f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>
) -> Result<usize>
impl EncodeTarget for Vec<u8>
[src]
fn encode_with(
&mut self,
max_len: usize,
f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>
) -> Result<usize>
[src]
&mut self,
max_len: usize,
f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>
) -> Result<usize>
impl EncodeTarget for String
[src]
fn encode_with(
&mut self,
max_len: usize,
f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>
) -> Result<usize>
[src]
&mut self,
max_len: usize,
f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>
) -> Result<usize>
impl EncodeTarget for [u8]
[src]
fn encode_with(
&mut self,
max_len: usize,
f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>
) -> Result<usize>
[src]
&mut self,
max_len: usize,
f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>
) -> Result<usize>
impl EncodeTarget for str
[src]
fn encode_with(
&mut self,
max_len: usize,
f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>
) -> Result<usize>
[src]
&mut self,
max_len: usize,
f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>
) -> Result<usize>