pub struct FrameAddress {
pub block_type: BlockType,
pub device_half: DeviceHalf,
pub row: u8,
pub column: u16,
pub minor: u8,
}
Fields§
§block_type: BlockType
§device_half: DeviceHalf
§row: u8
§column: u16
§minor: u8
Implementations§
Source§impl FrameAddress
impl FrameAddress
Sourcepub fn packed_struct_display_formatter<'a>(
&'a self,
) -> PackedStructDisplay<'a, Self, [u8; 4]>
pub fn packed_struct_display_formatter<'a>( &'a self, ) -> PackedStructDisplay<'a, Self, [u8; 4]>
Display formatter for console applications
Source§impl FrameAddress
impl FrameAddress
pub fn in_same_row(&self, other: &FrameAddress) -> bool
Trait Implementations§
Source§impl Add<u8> for FrameAddress
impl Add<u8> for FrameAddress
Source§impl Clone for FrameAddress
impl Clone for FrameAddress
Source§fn clone(&self) -> FrameAddress
fn clone(&self) -> FrameAddress
Returns a duplicate 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 FrameAddress
impl Debug for FrameAddress
Source§impl Default for FrameAddress
impl Default for FrameAddress
Source§fn default() -> FrameAddress
fn default() -> FrameAddress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FrameAddress
impl<'de> Deserialize<'de> for FrameAddress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FrameAddress
impl Display for FrameAddress
Source§impl FromIterator<FrameAddress> for Set
impl FromIterator<FrameAddress> for Set
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = FrameAddress>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = FrameAddress>,
Creates a value from an iterator. Read more
Source§impl Hash for FrameAddress
impl Hash for FrameAddress
Source§impl Ord for FrameAddress
impl Ord for FrameAddress
Source§fn cmp(&self, other: &FrameAddress) -> Ordering
fn cmp(&self, other: &FrameAddress) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PackedStruct<[u8; 4]> for FrameAddress
Structure that can be packed an unpacked into 4 bytes.
impl PackedStruct<[u8; 4]> for FrameAddress
Structure that can be packed an unpacked into 4 bytes.
Bit, MSB0 | Name | Type |
6:8 | block_type | BlockType |
9 | device_half | DeviceHalf |
10:14 | row | u8 |
15:24 | column | u16 |
25:31 | minor | u8 |
Source§impl PackedStructDebug for FrameAddress
impl PackedStructDebug for FrameAddress
Source§impl PackedStructInfo for FrameAddress
impl PackedStructInfo for FrameAddress
Source§fn packed_bits() -> usize
fn packed_bits() -> usize
Number of bits that this structure occupies when being packed.
Source§impl PackedStructSlice for FrameAddress
impl PackedStructSlice for FrameAddress
Source§fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
Pack the structure into an output buffer.
Source§fn unpack_from_slice(src: &[u8]) -> Result<Self, PackingError>
fn unpack_from_slice(src: &[u8]) -> Result<Self, PackingError>
Unpack the structure from a buffer.
Source§fn packed_bytes() -> usize
fn packed_bytes() -> usize
Number of bytes that this structure demands for packing or unpacking.
Source§fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
Pack the structure into a new byte vector.
Source§impl PartialEq for FrameAddress
impl PartialEq for FrameAddress
Source§impl PartialOrd for FrameAddress
impl PartialOrd for FrameAddress
Source§impl Pointer for FrameAddress
impl Pointer for FrameAddress
Source§impl Register for FrameAddressRegister
impl Register for FrameAddressRegister
fn register_address(&self) -> RegisterAddress
Source§impl Serialize for FrameAddress
impl Serialize for FrameAddress
impl Copy for FrameAddress
impl Eq for FrameAddress
impl StructuralPartialEq for FrameAddress
Auto Trait Implementations§
impl Freeze for FrameAddress
impl RefUnwindSafe for FrameAddress
impl Send for FrameAddress
impl Sync for FrameAddress
impl Unpin for FrameAddress
impl UnwindSafe for FrameAddress
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