pub struct StableMemoryAllocation { /* private fields */ }Implementations§
Source§impl StableMemoryAllocation
impl StableMemoryAllocation
pub const fn new( memory_id: u8, stable_key: String, schema_version: Option<u32>, schema_fingerprint: Option<String>, ) -> Self
pub const fn memory_id(&self) -> u8
pub const fn stable_key(&self) -> &str
pub const fn schema_version(&self) -> Option<u32>
pub const fn schema_fingerprint(&self) -> Option<&str>
pub fn same_identity_as(&self, other: &Self) -> bool
Trait Implementations§
Source§impl Clone for StableMemoryAllocation
impl Clone for StableMemoryAllocation
Source§fn clone(&self) -> StableMemoryAllocation
fn clone(&self) -> StableMemoryAllocation
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 StableMemoryAllocation
impl Debug for StableMemoryAllocation
Source§impl PartialEq for StableMemoryAllocation
impl PartialEq for StableMemoryAllocation
Source§fn eq(&self, other: &StableMemoryAllocation) -> bool
fn eq(&self, other: &StableMemoryAllocation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StableMemoryAllocation
impl StructuralPartialEq for StableMemoryAllocation
Auto Trait Implementations§
impl Freeze for StableMemoryAllocation
impl RefUnwindSafe for StableMemoryAllocation
impl Send for StableMemoryAllocation
impl Sync for StableMemoryAllocation
impl Unpin for StableMemoryAllocation
impl UnsafeUnpin for StableMemoryAllocation
impl UnwindSafe for StableMemoryAllocation
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