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 declaring crate’s claimed range before
caller-supplied policy runs.
Implementations§
Source§impl StaticMemoryRangeDeclaration
impl StaticMemoryRangeDeclaration
Sourcepub fn new(
declaring_crate: impl Into<String>,
record: MemoryManagerAuthorityRecord,
) -> Self
pub fn new( declaring_crate: impl Into<String>, record: MemoryManagerAuthorityRecord, ) -> Self
Build one static range declaration.
Sourcepub fn declaring_crate(&self) -> &str
pub fn declaring_crate(&self) -> &str
Return the crate 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
Source§impl PartialEq for StaticMemoryRangeDeclaration
impl PartialEq for StaticMemoryRangeDeclaration
Source§fn eq(&self, other: &StaticMemoryRangeDeclaration) -> bool
fn eq(&self, other: &StaticMemoryRangeDeclaration) -> bool
Tests for
self and other values to be equal, and is used by ==.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