Struct gba::bios::BitUnpackInfo
source · [−]#[repr(C)]pub struct BitUnpackInfo {
pub src_byte_len: u16,
pub src_elem_width: u8,
pub dest_elem_width: u8,
pub offset_and_touch_zero: u32,
}
Expand description
Used to provide info to a call of the BitUnPack
function.
Fields
src_byte_len: u16
Number of bytes in the source buffer
src_elem_width: u8
Bits per source element: 1, 2, 4, or 8.
dest_elem_width: u8
Bits per destination element: 1, 2, 4, 8, 16, or 32.
offset_and_touch_zero: u32
Bits 0..=30
are the offset value added to all non-zero elements.
If bit 31
is set then offset value is also added to zero elements.
Trait Implementations
sourceimpl Clone for BitUnpackInfo
impl Clone for BitUnpackInfo
sourcefn clone(&self) -> BitUnpackInfo
fn clone(&self) -> BitUnpackInfo
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BitUnpackInfo
impl Debug for BitUnpackInfo
sourceimpl Default for BitUnpackInfo
impl Default for BitUnpackInfo
sourcefn default() -> BitUnpackInfo
fn default() -> BitUnpackInfo
Returns the “default value” for a type. Read more
sourceimpl Hash for BitUnpackInfo
impl Hash for BitUnpackInfo
sourceimpl Ord for BitUnpackInfo
impl Ord for BitUnpackInfo
sourcefn cmp(&self, other: &BitUnpackInfo) -> Ordering
fn cmp(&self, other: &BitUnpackInfo) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<BitUnpackInfo> for BitUnpackInfo
impl PartialEq<BitUnpackInfo> for BitUnpackInfo
sourcefn eq(&self, other: &BitUnpackInfo) -> bool
fn eq(&self, other: &BitUnpackInfo) -> bool
sourceimpl PartialOrd<BitUnpackInfo> for BitUnpackInfo
impl PartialOrd<BitUnpackInfo> for BitUnpackInfo
sourcefn partial_cmp(&self, other: &BitUnpackInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &BitUnpackInfo) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for BitUnpackInfo
impl Eq for BitUnpackInfo
impl StructuralEq for BitUnpackInfo
impl StructuralPartialEq for BitUnpackInfo
Auto Trait Implementations
impl RefUnwindSafe for BitUnpackInfo
impl Send for BitUnpackInfo
impl Sync for BitUnpackInfo
impl Unpin for BitUnpackInfo
impl UnwindSafe for BitUnpackInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more