pub struct Config<'a> {
pub allocation_range: Range<Frame>,
pub regions: &'a mut dyn Iterator<Item = Range<Frame>>,
}
🔬This is a nightly-only experimental API. (
kernel_allocation_new
#5)Expand description
Configuration for creating a new allocator
Fields§
§allocation_range: Range<Frame>
🔬This is a nightly-only experimental API. (
kernel_allocation_new
#5)The lowest and highest frames that can be allocated
These should be equal to the minimum and maximum frames in (regions
)Self::regions
regions: &'a mut dyn Iterator<Item = Range<Frame>>
🔬This is a nightly-only experimental API. (
kernel_allocation_new
#5)The regions of memory that are valid to allocate from
Auto Trait Implementations§
impl<'a> Freeze for Config<'a>
impl<'a> !RefUnwindSafe for Config<'a>
impl<'a> !Send for Config<'a>
impl<'a> !Sync for Config<'a>
impl<'a> Unpin for Config<'a>
impl<'a> !UnwindSafe for Config<'a>
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