pub struct ChainRegion {
pub direction: RegionDirection,
pub bytes: u64,
}Expand description
Direction and length of one flattened chain region, without an address or transport identity.
Fields§
§direction: RegionDirectionDirection in which the device may access this region.
bytes: u64Nonzero region length in bytes.
Implementations§
Source§impl ChainRegion
impl ChainRegion
Sourcepub const fn readable(bytes: u64) -> ChainRegion
pub const fn readable(bytes: u64) -> ChainRegion
Construct a device-readable region.
Sourcepub const fn writable(bytes: u64) -> ChainRegion
pub const fn writable(bytes: u64) -> ChainRegion
Construct a device-writable region.
Trait Implementations§
Source§impl Clone for ChainRegion
impl Clone for ChainRegion
Source§fn clone(&self) -> ChainRegion
fn clone(&self) -> ChainRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChainRegion
Source§impl Debug for ChainRegion
impl Debug for ChainRegion
impl Eq for ChainRegion
Source§impl PartialEq for ChainRegion
impl PartialEq for ChainRegion
impl StructuralPartialEq for ChainRegion
Auto Trait Implementations§
impl Freeze for ChainRegion
impl RefUnwindSafe for ChainRegion
impl Send for ChainRegion
impl Sync for ChainRegion
impl Unpin for ChainRegion
impl UnsafeUnpin for ChainRegion
impl UnwindSafe for ChainRegion
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