Struct dochy_core::intf::MListPtr [−][src]
Expand description
This uses pointers so every method is basically unsafe. You can get this ptr, and create an immutable reference, and modify the referent through this pointer, and access the immutable reference afterwards. Anything can happen with the access.
Getting data through this pointer while a mutable reference is alive is also an undefined behavior.
Pointers can outlive their referents, and access dropped items. It’s also UB.
Because references and pointers are not exposed, creating contradict references is basically impossible.
Implementations
&LinkedMap
Anything can happen when a removed item is accessed, so be careful
Anything can happen when a removed item is accessed, so be careful
Anything can happen when a removed item is accessed, so be careful
pub fn iter_const(&self) -> MListPtrIter<V>ⓘNotable traits for MListPtrIter<V>impl<V: From<MItemPtr>> Iterator for MListPtrIter<V> type Item = (u64, V);
impl<V: From<MItemPtr>> Iterator for MListPtrIter<V> type Item = (u64, V);
pub fn iter_mut(&mut self) -> MListPtrIter<V>ⓘNotable traits for MListPtrIter<V>impl<V: From<MItemPtr>> Iterator for MListPtrIter<V> type Item = (u64, V);
impl<V: From<MItemPtr>> Iterator for MListPtrIter<V> type Item = (u64, V);
pub fn iter_from_last_const(&self) -> MListPtrIter<V>ⓘNotable traits for MListPtrIter<V>impl<V: From<MItemPtr>> Iterator for MListPtrIter<V> type Item = (u64, V);
impl<V: From<MItemPtr>> Iterator for MListPtrIter<V> type Item = (u64, V);
pub fn iter_from_last_mut(&mut self) -> MListPtrIter<V>ⓘNotable traits for MListPtrIter<V>impl<V: From<MItemPtr>> Iterator for MListPtrIter<V> type Item = (u64, V);
impl<V: From<MItemPtr>> Iterator for MListPtrIter<V> type Item = (u64, V);
Trait Implementations
Auto Trait Implementations
impl<V> RefUnwindSafe for MListPtr<V> where
V: RefUnwindSafe,
impl<V> UnwindSafe for MListPtr<V> where
V: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more