#[repr(C)]pub struct MapselFormat {
pub base: u32_,
pub bitDepth: u8_,
pub idShift: u8_,
pub idLen: u8_,
pub hfShift: u8_,
pub hfLen: u8_,
pub vfShift: u8_,
pub vfLen: u8_,
pub pbShift: u8_,
pub pbLen: u8_,
}Expand description
! Bitformat for external mapsels. *! Used for converting to and from the internal mapsel format. */
Fields§
§base: u32_!< Additive base mapsel.
bitDepth: u8_!< Full mapsel length in bits.
idShift: u8_!< Index bitfield parameters.
idLen: u8_!< Index bitfield parameters.
hfShift: u8_!< Horizontal flip field parameters.
hfLen: u8_!< Horizontal flip field parameters.
vfShift: u8_!< Vertical flip field parameters.
vfLen: u8_!< Vertical flip field parameters.
pbShift: u8_!< Palette bank field parameters.
pbLen: u8_!< Palette bank field parameters.
Trait Implementations§
Source§impl Clone for MapselFormat
impl Clone for MapselFormat
Source§fn clone(&self) -> MapselFormat
fn clone(&self) -> MapselFormat
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MapselFormat
impl Debug for MapselFormat
impl Copy for MapselFormat
Auto Trait Implementations§
impl Freeze for MapselFormat
impl RefUnwindSafe for MapselFormat
impl Send for MapselFormat
impl Sync for MapselFormat
impl Unpin for MapselFormat
impl UnwindSafe for MapselFormat
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