pub struct MemoryEntryId(/* private fields */);Expand description
What an entry is called, so something else can point at it.
Memory without names is a list. The moment one thing explains another, both need to be nameable from outside the sentence that relates them — and nameable again in a later session, hours after the one that wrote them has ended.
So the name is the caller’s to choose and the caller’s to keep stable. Deriving it here from content or from a counter would make it unpredictable to the only party that could use it: the one writing the entry that points back.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryEntryId
impl Clone for MemoryEntryId
Source§fn clone(&self) -> MemoryEntryId
fn clone(&self) -> MemoryEntryId
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 MemoryEntryId
impl Debug for MemoryEntryId
Source§impl<'de> Deserialize<'de> for MemoryEntryId
impl<'de> Deserialize<'de> for MemoryEntryId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MemoryEntryId
impl Display for MemoryEntryId
impl Eq for MemoryEntryId
Source§impl Hash for MemoryEntryId
impl Hash for MemoryEntryId
Source§impl Ord for MemoryEntryId
impl Ord for MemoryEntryId
Source§fn cmp(&self, other: &MemoryEntryId) -> Ordering
fn cmp(&self, other: &MemoryEntryId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MemoryEntryId
impl PartialEq for MemoryEntryId
Source§impl PartialOrd for MemoryEntryId
impl PartialOrd for MemoryEntryId
Source§impl Serialize for MemoryEntryId
impl Serialize for MemoryEntryId
impl StructuralPartialEq for MemoryEntryId
Auto Trait Implementations§
impl Freeze for MemoryEntryId
impl RefUnwindSafe for MemoryEntryId
impl Send for MemoryEntryId
impl Sync for MemoryEntryId
impl Unpin for MemoryEntryId
impl UnsafeUnpin for MemoryEntryId
impl UnwindSafe for MemoryEntryId
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