Struct pmd_message::MessageBin[][src]

pub struct MessageBin {
    pub messages: BTreeMap<u32, String>,
}

A structure representing a translation (message) file in 3ds pokemon mystery dungeon games.

Each text have an associated (32bit, probably crc32) hash associated with them as a key.

Fields

messages: BTreeMap<u32, String>

Contain the messages stored in this file, indexed by the id (an hash)

Implementations

impl MessageBin[src]

pub fn load_file<T: Read + Seek>(
    file: &mut T
) -> Result<Self, MessageBinReadError>
[src]

Load a MessageBin file from the reader.

pub fn write<T: Seek + Write>(
    &self,
    file: &mut T
) -> Result<(), MessageBinWriteError>
[src]

Trait Implementations

impl Debug for MessageBin[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.