pub struct StaticMemoryRangeDeclaration { /* private fields */ }Expand description
StaticMemoryRangeDeclaration
One MemoryManager authority range registered by crate-level generated or
macro code before bootstrap seals the declaration snapshot. In the default
runtime, registered user ranges are authoritative generic range policy:
declarations must stay inside the authority’s claimed range before
caller-supplied policy runs.
Implementations§
Source§impl StaticMemoryRangeDeclaration
impl StaticMemoryRangeDeclaration
Sourcepub fn new(
record: MemoryManagerAuthorityRecord,
) -> Result<Self, StaticMemoryDeclarationError>
pub fn new( record: MemoryManagerAuthorityRecord, ) -> Result<Self, StaticMemoryDeclarationError>
Build one static range declaration from a validated authority record.
Return the authority that registered this range.
Sourcepub const fn record(&self) -> &MemoryManagerAuthorityRecord
pub const fn record(&self) -> &MemoryManagerAuthorityRecord
Borrow the authority record.
Sourcepub fn into_record(self) -> MemoryManagerAuthorityRecord
pub fn into_record(self) -> MemoryManagerAuthorityRecord
Consume this registration and return the authority record.
Trait Implementations§
Source§impl Clone for StaticMemoryRangeDeclaration
impl Clone for StaticMemoryRangeDeclaration
Source§fn clone(&self) -> StaticMemoryRangeDeclaration
fn clone(&self) -> StaticMemoryRangeDeclaration
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 moreSource§impl Debug for StaticMemoryRangeDeclaration
impl Debug for StaticMemoryRangeDeclaration
impl Eq for StaticMemoryRangeDeclaration
impl StructuralPartialEq for StaticMemoryRangeDeclaration
Auto Trait Implementations§
impl Freeze for StaticMemoryRangeDeclaration
impl RefUnwindSafe for StaticMemoryRangeDeclaration
impl Send for StaticMemoryRangeDeclaration
impl Sync for StaticMemoryRangeDeclaration
impl Unpin for StaticMemoryRangeDeclaration
impl UnsafeUnpin for StaticMemoryRangeDeclaration
impl UnwindSafe for StaticMemoryRangeDeclaration
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