pub enum MemoryZone {
Dma,
Normal,
High,
}Expand description
Memory zone for frame allocation
Variants§
Dma
DMA zone (0-16MB on x86)
Normal
Normal zone (16MB-4GB on 32-bit, all memory on 64-bit)
High
High memory zone (>4GB on 32-bit, unused on 64-bit)
Implementations§
Source§impl MemoryZone
impl MemoryZone
Sourcepub fn frame_range(&self) -> (FrameNumber, FrameNumber)
pub fn frame_range(&self) -> (FrameNumber, FrameNumber)
Get the frame range for this zone on the current architecture
Sourcepub fn contains(&self, frame: FrameNumber) -> bool
pub fn contains(&self, frame: FrameNumber) -> bool
Check if a frame belongs to this zone
Sourcepub fn for_frame(frame: FrameNumber) -> Self
pub fn for_frame(frame: FrameNumber) -> Self
Get the appropriate zone for a frame number
Trait Implementations§
Source§impl Clone for MemoryZone
impl Clone for MemoryZone
Source§fn clone(&self) -> MemoryZone
fn clone(&self) -> MemoryZone
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryZone
impl Debug for MemoryZone
Source§impl PartialEq for MemoryZone
impl PartialEq for MemoryZone
impl Copy for MemoryZone
impl Eq for MemoryZone
impl StructuralPartialEq for MemoryZone
Auto Trait Implementations§
impl Freeze for MemoryZone
impl RefUnwindSafe for MemoryZone
impl Send for MemoryZone
impl Sync for MemoryZone
impl Unpin for MemoryZone
impl UnwindSafe for MemoryZone
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)