StructUnpack

Trait StructUnpack 

Source
pub trait StructUnpack: Sized {
    // Required method
    fn unpack<R: Read + Seek>(
        reader: &mut R,
        big: bool,
        encoding: Encoding,
        info: &Option<Box<dyn Any>>,
    ) -> Result<Self>;
}
Expand description

Trait for unpacking a struct from a binary stream.

Required Methods§

Source

fn unpack<R: Read + Seek>( reader: &mut R, big: bool, encoding: Encoding, info: &Option<Box<dyn Any>>, ) -> Result<Self>

Unpacks a struct from a binary stream.

  • reader - The reader to read the binary data from.
  • big - Whether the data is in big-endian format.
  • encoding - The encoding to use for string fields.
  • info - Additional information that may be needed for unpacking.

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 StructUnpack for bool

Source§

fn unpack<R: Read + Seek>( reader: &mut R, _big: bool, _encoding: Encoding, _info: &Option<Box<dyn Any>>, ) -> Result<Self>

Source§

impl StructUnpack for f32

Source§

fn unpack<R: Read + Seek>( reader: &mut R, big: bool, _encoding: Encoding, _info: &Option<Box<dyn Any>>, ) -> Result<Self>

Source§

impl StructUnpack for f64

Source§

fn unpack<R: Read + Seek>( reader: &mut R, big: bool, _encoding: Encoding, _info: &Option<Box<dyn Any>>, ) -> Result<Self>

Source§

impl StructUnpack for i8

Source§

fn unpack<R: Read + Seek>( reader: &mut R, big: bool, _encoding: Encoding, _info: &Option<Box<dyn Any>>, ) -> Result<Self>

Source§

impl StructUnpack for i16

Source§

fn unpack<R: Read + Seek>( reader: &mut R, big: bool, _encoding: Encoding, _info: &Option<Box<dyn Any>>, ) -> Result<Self>

Source§

impl StructUnpack for i32

Source§

fn unpack<R: Read + Seek>( reader: &mut R, big: bool, _encoding: Encoding, _info: &Option<Box<dyn Any>>, ) -> Result<Self>

Source§

impl StructUnpack for i64

Source§

fn unpack<R: Read + Seek>( reader: &mut R, big: bool, _encoding: Encoding, _info: &Option<Box<dyn Any>>, ) -> Result<Self>

Source§

impl StructUnpack for i128

Source§

fn unpack<R: Read + Seek>( reader: &mut R, big: bool, _encoding: Encoding, _info: &Option<Box<dyn Any>>, ) -> Result<Self>

Source§

impl StructUnpack for u8

Source§

fn unpack<R: Read + Seek>( reader: &mut R, big: bool, _encoding: Encoding, _info: &Option<Box<dyn Any>>, ) -> Result<Self>

Source§

impl StructUnpack for u16

Source§

fn unpack<R: Read + Seek>( reader: &mut R, big: bool, _encoding: Encoding, _info: &Option<Box<dyn Any>>, ) -> Result<Self>

Source§

impl StructUnpack for u32

Source§

fn unpack<R: Read + Seek>( reader: &mut R, big: bool, _encoding: Encoding, _info: &Option<Box<dyn Any>>, ) -> Result<Self>

Source§

impl StructUnpack for u64

Source§

fn unpack<R: Read + Seek>( reader: &mut R, big: bool, _encoding: Encoding, _info: &Option<Box<dyn Any>>, ) -> Result<Self>

Source§

impl StructUnpack for u128

Source§

fn unpack<R: Read + Seek>( reader: &mut R, big: bool, _encoding: Encoding, _info: &Option<Box<dyn Any>>, ) -> Result<Self>

Source§

impl<T: StructUnpack> StructUnpack for Option<T>

Source§

fn unpack<R: Read + Seek>( reader: &mut R, big: bool, encoding: Encoding, info: &Option<Box<dyn Any>>, ) -> Result<Self>

Source§

impl<const T: usize> StructUnpack for [u8; T]

Source§

fn unpack<R: Read + Seek>( reader: &mut R, _big: bool, _encoding: Encoding, _info: &Option<Box<dyn Any>>, ) -> Result<Self>

Implementors§

Source§

impl StructUnpack for TypedObject

Available on crate feature entis-gls only.
Source§

impl StructUnpack for Pf2EntryHeader

Available on crate features artemis-arc and artemis only.
Source§

impl StructUnpack for PfsEntryHeader

Available on crate features artemis-arc and artemis only.
Source§

impl StructUnpack for msg_tool::scripts::bgi::archive::v1::BgiFileHeader

Available on crate features bgi-arc and bgi only.
Source§

impl StructUnpack for msg_tool::scripts::bgi::archive::v2::BgiFileHeader

Available on crate features bgi-arc and bgi only.
Source§

impl StructUnpack for BgiCBGHeader

Available on crate features bgi-img and bgi only.
Source§

impl StructUnpack for Hg3Entry

Available on crate features cat-system-img and cat-system only.
Source§

impl StructUnpack for PckFileHeader

Available on crate features circus-arc and circus only.
Source§

impl StructUnpack for msg_tool::scripts::circus::audio::pcm::Header

Available on crate features circus-audio and circus only.
Source§

impl StructUnpack for Clip

Available on crate features circus-img and circus only.
Source§

impl StructUnpack for msg_tool::scripts::circus::image::crx::Header

Available on crate features circus-img and circus only.
Source§

impl StructUnpack for msg_tool::scripts::entis_gls::csx::v1::types::DWordArray

Available on crate feature entis-gls only.
Source§

impl StructUnpack for EMCFileHeader

Available on crate feature entis-gls only.
Source§

impl StructUnpack for EXIHeader

Available on crate feature entis-gls only.
Source§

impl StructUnpack for FunctionNameItem

Available on crate feature entis-gls only.
Source§

impl StructUnpack for FunctionNameList

Available on crate feature entis-gls only.
Source§

impl StructUnpack for TaggedRefAddress

Available on crate feature entis-gls only.
Source§

impl StructUnpack for TaggedRefAddressList

Available on crate feature entis-gls only.
Source§

impl StructUnpack for msg_tool::scripts::entis_gls::csx::v1::types::WideString

Available on crate feature entis-gls only.
Source§

impl StructUnpack for ArrayDimensionObject

Available on crate feature entis-gls only.
Source§

impl StructUnpack for ArrayObject

Available on crate feature entis-gls only.
Source§

impl StructUnpack for BaseClassCastInfoEntry

Available on crate feature entis-gls only.
Source§

impl StructUnpack for BaseClassInfoEntry

Available on crate feature entis-gls only.
Source§

impl StructUnpack for ClassInfoEntry

Available on crate feature entis-gls only.
Source§

impl StructUnpack for ClassInfoObject

Available on crate feature entis-gls only.
Source§

impl StructUnpack for ConstStringEntry

Available on crate feature entis-gls only.
Source§

impl StructUnpack for msg_tool::scripts::entis_gls::csx::v2::types::DWordArray

Available on crate feature entis-gls only.
Source§

impl StructUnpack for ECSCastInterface

Available on crate feature entis-gls only.
Source§

impl StructUnpack for FieldInfoEntry

Available on crate feature entis-gls only.
Source§

impl StructUnpack for FileHeader

Available on crate feature entis-gls only.
Source§

impl StructUnpack for FuncEntryHeader

Available on crate feature entis-gls only.
Source§

impl StructUnpack for FuncInfoEntry

Available on crate feature entis-gls only.
Source§

impl StructUnpack for FuncNameEntry

Available on crate feature entis-gls only.
Source§

impl StructUnpack for GlobalObjectEntry

Available on crate feature entis-gls only.
Source§

impl StructUnpack for HashContainerObject

Available on crate feature entis-gls only.
Source§

impl StructUnpack for Integer64Object

Available on crate feature entis-gls only.
Source§

impl StructUnpack for MethodInfoEntry

Available on crate feature entis-gls only.
Source§

impl StructUnpack for NakedSymbolInfoEntry

Available on crate feature entis-gls only.
Source§

impl StructUnpack for PointerObject

Available on crate feature entis-gls only.
Source§

impl StructUnpack for PrototypeInfoEntry

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionClassInfo

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionConstString

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionData

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionFuncInfo

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionFunction

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionGlobal

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionHeader

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionImportNativeFunc

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionInitNakedFunc

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionLinkInfo

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionLinkInfoEx

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionNakedFunc

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionNativeFunc

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionRefClass

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionRefCode

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionRefFunc

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SectionSymbolInfo

Available on crate feature entis-gls only.
Source§

impl StructUnpack for SymbolInfoEntry

Available on crate feature entis-gls only.
Source§

impl StructUnpack for TagedDwordArray

Available on crate feature entis-gls only.
Source§

impl StructUnpack for TagedDwordArrayEntry

Available on crate feature entis-gls only.
Source§

impl StructUnpack for TagedObjectEntry

Available on crate feature entis-gls only.
Source§

impl StructUnpack for TypeInfoEntry

Available on crate feature entis-gls only.
Source§

impl StructUnpack for msg_tool::scripts::entis_gls::csx::v2::types::WideString

Available on crate feature entis-gls only.
Source§

impl StructUnpack for AmbT

Available on crate feature escude only.
Source§

impl StructUnpack for BgT

Available on crate feature escude only.
Source§

impl StructUnpack for BgmT

Available on crate feature escude only.
Source§

impl StructUnpack for EfxT

Available on crate feature escude only.
Source§

impl StructUnpack for EvT

Available on crate feature escude only.
Source§

impl StructUnpack for LocT

Available on crate feature escude only.
Source§

impl StructUnpack for NameT

Available on crate feature escude only.
Source§

impl StructUnpack for Point

Available on crate feature escude only.
Source§

impl StructUnpack for SceneT

Available on crate feature escude only.
Source§

impl StructUnpack for ScriptT2

Available on crate feature escude only.
Source§

impl StructUnpack for ScriptT

Available on crate feature escude only.
Source§

impl StructUnpack for SeT

Available on crate feature escude only.
Source§

impl StructUnpack for SfxT

Available on crate feature escude only.
Source§

impl StructUnpack for StT

Available on crate feature escude only.
Source§

impl StructUnpack for VarT

Available on crate feature escude only.
Source§

impl StructUnpack for msg_tool::scripts::ex_hibit::rld::Header

Available on crate feature ex-hibit only.
Source§

impl StructUnpack for Op

Available on crate feature ex-hibit only.
Source§

impl StructUnpack for OpExt

Available on crate feature ex-hibit only.
Source§

impl StructUnpack for DataArea

Available on crate feature kirikiri only.
Source§

impl StructUnpack for msg_tool::scripts::kirikiri::tjs_ns0::Header

Available on crate feature kirikiri only.
Source§

impl StructUnpack for PazEntry

Available on crate features musica-arc and musica only.
Source§

impl StructUnpack for QlieHash12

Available on crate features qlie-arc and qlie only.
Source§

impl StructUnpack for QlieHash13

Available on crate features qlie-arc and qlie only.
Source§

impl StructUnpack for QlieHash14

Available on crate features qlie-arc and qlie only.
Source§

impl StructUnpack for QlieHeader

Available on crate features qlie-arc and qlie only.
Source§

impl StructUnpack for QlieKey

Available on crate features qlie-arc and qlie only.
Source§

impl StructUnpack for DpngFile

Available on crate features qlie-img and qlie only.
Source§

impl StructUnpack for DpngHeader

Available on crate features qlie-img and qlie only.
Source§

impl StructUnpack for Tile

Available on crate features qlie-img and qlie only.
Source§

impl StructUnpack for PgdDiffHeader

Available on crate features softpal-img and softpal only.
Source§

impl StructUnpack for PgdGeHeader

Available on crate features softpal-img and softpal only.
Source§

impl StructUnpack for FrameHeader

Available on crate features will-plus-img and will-plus only.
Source§

impl StructUnpack for ItufuruFileHeader

Available on crate features yaneurao-itufuru and yaneurao only.
Source§

impl StructUnpack for PcmFormat

Available on crate feature utils-pcm only.
Source§

impl StructUnpack for AdditionalLayerInfo

Available on crate feature utils-psd only.
Source§

impl StructUnpack for LayerID

Available on crate feature utils-psd only.
Source§

impl StructUnpack for LayerNameSourceSetting

Available on crate feature utils-psd only.
Source§

impl StructUnpack for ChannelImageData

Available on crate feature utils-psd only.
Source§

impl StructUnpack for ChannelInfo

Available on crate feature utils-psd only.
Source§

impl StructUnpack for ChannelRange

Available on crate feature utils-psd only.
Source§

impl StructUnpack for ColorModeData

Available on crate feature utils-psd only.
Source§

impl StructUnpack for GlobalLayerMaskInfo

Available on crate feature utils-psd only.
Source§

impl StructUnpack for ImageDataSection

Available on crate feature utils-psd only.
Source§

impl StructUnpack for ImageResourceBlock

Available on crate feature utils-psd only.
Source§

impl StructUnpack for ImageResourceSection

Available on crate feature utils-psd only.
Source§

impl StructUnpack for LayerAndMaskInfo

Available on crate feature utils-psd only.
Source§

impl StructUnpack for LayerBlendingRanges

Available on crate feature utils-psd only.
Source§

impl StructUnpack for LayerInfo

Available on crate feature utils-psd only.
Source§

impl StructUnpack for LayerMask

Available on crate feature utils-psd only.
Source§

impl StructUnpack for LayerRecord

Available on crate feature utils-psd only.
Source§

impl StructUnpack for LayerRecordBase

Available on crate feature utils-psd only.
Source§

impl StructUnpack for PascalString4

Available on crate feature utils-psd only.
Source§

impl StructUnpack for PascalString

Available on crate feature utils-psd only.
Source§

impl StructUnpack for PsdFile

Available on crate feature utils-psd only.
Source§

impl StructUnpack for PsdHeader

Available on crate feature utils-psd only.
Source§

impl StructUnpack for SectionDividerSetting

Available on crate feature utils-psd only.
Source§

impl StructUnpack for UnicodeLayer

Available on crate feature utils-psd only.
Source§

impl StructUnpack for UnicodeString

Available on crate feature utils-psd only.