Struct os_bootinfo::FrameRange
[−]
[src]
#[repr(C)]pub struct FrameRange { pub start_frame_number: u64, pub end_frame_number: u64, }
Fields
start_frame_number: u64
end_frame_number: u64
Methods
impl FrameRange
[src]
pub fn new(start_addr: u64, end_addr: u64) -> Self
[src]
Create a new FrameRange from the passed start_addr and end_addr.
The end_addr is exclusive.
pub fn is_empty(&self) -> bool
[src]
pub fn start_addr(&self) -> u64
[src]
pub fn end_addr(&self) -> u64
[src]
Trait Implementations
impl Clone for FrameRange
[src]
fn clone(&self) -> FrameRange
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for FrameRange
[src]
impl PartialEq for FrameRange
[src]
fn eq(&self, __arg_0: &FrameRange) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FrameRange) -> bool
[src]
This method tests for !=
.