Trait File

Source
pub trait File: Sized {
    // Required method
    fn read<'a>(data: impl Into<Cow<'a, [u8]>>) -> Result<Self, Error>;
}
Expand description

A file that can be read from ironworks.

Required Methods§

Source

fn read<'a>(data: impl Into<Cow<'a, [u8]>>) -> Result<Self, Error>

Build an instance of this file from the raw byte representation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl File for Vec<u8>

Source§

fn read<'a>(data: impl Into<Cow<'a, [u8]>>) -> Result<Self, Error>

Implementors§

Source§

impl File for EquipmentDeformerParameter

Available on crate feature eqdp only.
Source§

impl File for ExcelData

Available on crate feature exd only.
Source§

impl File for ExcelHeader

Available on crate feature exh only.
Source§

impl File for ExcelList

Available on crate feature exl only.
Source§

impl File for ModelContainer

Available on crate feature mdl only.
Source§

impl File for Material

Available on crate feature mtrl only.
Source§

impl File for PreBoneDeformer

Available on crate feature pbd only.
Source§

impl File for SkeletonBinary

Available on crate feature sklb only.
Source§

impl File for Texture

Available on crate feature tex only.