Struct matrix_sdk_common::linked_chunk::Position
source · pub struct Position(/* private fields */);
Expand description
The position of something inside a Chunk
.
It’s a pair of a chunk position and an item index.
Implementations§
source§impl Position
impl Position
sourcepub fn chunk_identifier(&self) -> ChunkIdentifier
pub fn chunk_identifier(&self) -> ChunkIdentifier
Get the chunk identifier of the item.
sourcepub fn decrement_index(&mut self)
pub fn decrement_index(&mut self)
Decrement the index part (see Self::index
), i.e. subtract 1.
§Panic
This method will panic if it will underflow, i.e. if the index is 0.
Trait Implementations§
source§impl PartialEq for Position
impl PartialEq for Position
impl Copy for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CompatExt for T
impl<T> CompatExt for T
source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>