pub struct SMFHeader {Show 16 fields
pub version: u32,
pub id: u32,
pub width: u32,
pub length: u32,
pub square_size: u32,
pub texel_per_square: u32,
pub tile_size: u32,
pub min_height: f32,
pub max_height: f32,
pub height_map_ptr: u32,
pub type_map_ptr: u32,
pub tiles_ptr: u32,
pub minimap_ptr: u32,
pub metal_map_ptr: u32,
pub feature_ptr: u32,
pub extra_header_count: u32,
}Fields§
§version: u32§id: u32§width: u32§length: u32§square_size: u32§texel_per_square: u32§tile_size: u32§min_height: f32§max_height: f32§height_map_ptr: u32§type_map_ptr: u32§tiles_ptr: u32§minimap_ptr: u32§metal_map_ptr: u32§feature_ptr: u32§extra_header_count: u32Trait Implementations§
Source§impl BinRead for SMFHeader
impl BinRead for SMFHeader
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming little-endian byte order, using
the given arguments. Read moreAuto Trait Implementations§
impl Freeze for SMFHeader
impl RefUnwindSafe for SMFHeader
impl Send for SMFHeader
impl Sync for SMFHeader
impl Unpin for SMFHeader
impl UnwindSafe for SMFHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more