Struct fuzzy_rocks::BitcodeCoder
source · pub struct BitcodeCoder;
Trait Implementations§
source§impl Clone for BitcodeCoder
impl Clone for BitcodeCoder
source§fn clone(&self) -> BitcodeCoder
fn clone(&self) -> BitcodeCoder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Coder for BitcodeCoder
impl Coder for BitcodeCoder
source§fn format_name(&self) -> &'static str
fn format_name(&self) -> &'static str
The name of the format, to check for compatibility
source§fn encode_fmt1_to_buf<T: Serialize>(&self, obj: &T) -> Result<Vec<u8>, String>
fn encode_fmt1_to_buf<T: Serialize>(&self, obj: &T) -> Result<Vec<u8>, String>
Encodes an arbitrary structure to bytes using fmt1 encoding
source§fn decode_fmt1_from_bytes<'a, T: Deserialize<'a>>(
&self,
bytes: &'a [u8]
) -> Result<T, String>
fn decode_fmt1_from_bytes<'a, T: Deserialize<'a>>( &self, bytes: &'a [u8] ) -> Result<T, String>
Decodes an arbitrary structure from bytes using a fmt1 encoding
source§fn encode_fmt1_list_to_buf<T: Serialize + IntoIterator>(
&self,
list: &T
) -> Result<Vec<u8>, String>
fn encode_fmt1_list_to_buf<T: Serialize + IntoIterator>( &self, list: &T ) -> Result<Vec<u8>, String>
Encodes a list of items to a buffer using a fmt1 encoding Read more
source§fn fmt1_list_len(&self, bytes: &[u8]) -> Result<usize, String>
fn fmt1_list_len(&self, bytes: &[u8]) -> Result<usize, String>
Returns the number of elements in an encoded fmt1 list without decoding them Read more
source§fn encode_fmt2_to_buf<T: Serialize>(&self, obj: &T) -> Result<Vec<u8>, String>
fn encode_fmt2_to_buf<T: Serialize>(&self, obj: &T) -> Result<Vec<u8>, String>
Encodes an arbitrary structure to bytes using fmt2 encoding
source§fn decode_fmt2_from_bytes<'a, T: Deserialize<'a>>(
&self,
bytes: &'a [u8]
) -> Result<T, String>
fn decode_fmt2_from_bytes<'a, T: Deserialize<'a>>( &self, bytes: &'a [u8] ) -> Result<T, String>
Decodes an arbitrary structure from bytes using fmt2 encoding
source§impl Debug for BitcodeCoder
impl Debug for BitcodeCoder
source§impl Default for BitcodeCoder
impl Default for BitcodeCoder
source§fn default() -> BitcodeCoder
fn default() -> BitcodeCoder
Returns the “default value” for a type. Read more
impl Copy for BitcodeCoder
Auto Trait Implementations§
impl Freeze for BitcodeCoder
impl RefUnwindSafe for BitcodeCoder
impl Send for BitcodeCoder
impl Sync for BitcodeCoder
impl Unpin for BitcodeCoder
impl UnwindSafe for BitcodeCoder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more