pub enum Location<A: Address> {
Any,
Aligned(NonZero<u32>),
At(A),
Below {
location: A,
with_alignment: NonZero<u32>,
},
}
Available on non-crate feature
use_std
only.Expand description
The location at which to make the mapping
Variants§
Any
The mapping can go anywhere
Aligned(NonZero<u32>)
🔬This is a nightly-only experimental API. (
kernel_mmap_config
#24)At(A)
The mapping will fail if it cannot be allocated at this exact location
Below
🔬This is a nightly-only experimental API. (
kernel_mmap_config
#24)Trait Implementations§
impl<A: Copy + Address> Copy for Location<A>
Auto Trait Implementations§
impl<A> Freeze for Location<A>where
A: Freeze,
impl<A> RefUnwindSafe for Location<A>where
A: RefUnwindSafe,
impl<A> Send for Location<A>where
A: Send,
impl<A> Sync for Location<A>where
A: Sync,
impl<A> Unpin for Location<A>where
A: Unpin,
impl<A> UnwindSafe for Location<A>where
A: UnwindSafe,
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
#126799)