Trait rspolib::AsBytes

source ·
pub trait AsBytes {
    // Required methods
    fn as_bytes(&self) -> Vec<u8>;
    fn as_bytes_le(&self) -> Vec<u8>;
    fn as_bytes_be(&self) -> Vec<u8>;
}
Expand description

Provides functions to convert to MO files content as bytes

  • as_bytes method as an alias to as_bytes_le.
  • as_bytes_le method to return the content as bytes in little endian byte order.
  • as_bytes_be method to return the content as bytes in big endian byte order.

Required Methods§

source

fn as_bytes(&self) -> Vec<u8>

Return the content as bytes

source

fn as_bytes_le(&self) -> Vec<u8>

Return the content as bytes in little endian

source

fn as_bytes_be(&self) -> Vec<u8>

Return the content as bytes in big endian

Implementors§