Struct corundum::ptr::Slice [−][src]
Expand description
A persistent fat pointer with offset and capacity
Implementations
Returns a mutable reference to the object at index i
without checking
the boundaries
Divides one slice into two at an index.
The first will contain all indices from [0, mid)
(excluding
the index mid
itself) and the second will contain all
indices from [mid, len)
(excluding the index len
itself).
Panics
Panics if mid > len
.
Divides one mutable slice into two at an index.
The first will contain all indices from [0, mid)
(excluding
the index mid
itself) and the second will contain all
indices from [mid, len)
(excluding the index len
itself).
Panics
Panics if mid > len
.
Trait Implementations
Size of the object on Persistent Memory Assuming that self is not on PM, or considered else were, the size of allocated persistent memory is the sum of all persistent objects pointed by this object. Read more
Size of the object on Persistent Memory including Self
Assuming that self is also on PM (e.g. the root object), the size of allocated persistent memory
includes the size of all objects pointed by this object and the size Self
. Read more
Ptr
pointers are not Send
because the data they reference may be aliased.
Ptr
pointers are not Sync
because the data they reference may be aliased.
Auto Trait Implementations
impl<T, A> LooseTxInUnsafe for Slice<T, A> where
A: LooseTxInUnsafe,
T: LooseTxInUnsafe,
impl<T, A> RefUnwindSafe for Slice<T, A> where
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, A> UnwindSafe for Slice<T, A> where
A: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more