cube_rs 0.4.7

Universal GameCube file format tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::path::Path;

use crate::virtual_fs::VirtualFile;

/// For turning 'normal' files into GCN file formats
pub trait Encode {
    type Error;
    fn encode<P: AsRef<Path>>(path: P) -> Result<VirtualFile, Self::Error>;
}

/// For turning files in GCN formats into 'normal' file formats
pub trait Decode {
    type Out;
    fn decode(&self) -> Self::Out;
}