pub struct MemoryPoolDecl {
pub name: Ident,
pub context_limit: Option<u64>,
pub context_limit_span: Option<SourceSpan>,
pub span: SourceSpan,
}Expand description
memory pool <name> { context limit <n> } (std.memory, MEM-1): a named
durable memory place. Mirrors file store as a declaration_block /
metadata_only construct providing Resource<MemoryPool>. v1 pools are
provider-less; context limit <n> (optional, non-negative) is the recall
packing budget. Unknown clauses are rejected (file-store precedent).
Fields§
§name: Ident§context_limit: Option<u64>§context_limit_span: Option<SourceSpan>Source span of the context clause keyword, so whip fmt can interleave
body comments by position (file-store precedent).
span: SourceSpanTrait Implementations§
Source§impl Clone for MemoryPoolDecl
impl Clone for MemoryPoolDecl
Source§fn clone(&self) -> MemoryPoolDecl
fn clone(&self) -> MemoryPoolDecl
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 MemoryPoolDecl
impl Debug for MemoryPoolDecl
impl Eq for MemoryPoolDecl
Source§impl PartialEq for MemoryPoolDecl
impl PartialEq for MemoryPoolDecl
impl StructuralPartialEq for MemoryPoolDecl
Auto Trait Implementations§
impl Freeze for MemoryPoolDecl
impl RefUnwindSafe for MemoryPoolDecl
impl Send for MemoryPoolDecl
impl Sync for MemoryPoolDecl
impl Unpin for MemoryPoolDecl
impl UnsafeUnpin for MemoryPoolDecl
impl UnwindSafe for MemoryPoolDecl
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