Struct miden_objects::block::BlockNoteIndex
source · pub struct BlockNoteIndex { /* private fields */ }Expand description
Index of a block note.
Implementations§
source§impl BlockNoteIndex
impl BlockNoteIndex
sourcepub fn new(batch_idx: usize, note_idx_in_batch: usize) -> Self
pub fn new(batch_idx: usize, note_idx_in_batch: usize) -> Self
Creates a new BlockNoteIndex.
sourcepub fn note_idx_in_batch(&self) -> usize
pub fn note_idx_in_batch(&self) -> usize
Returns the note index in the batch.
sourcepub fn to_absolute_index(&self) -> u64
pub fn to_absolute_index(&self) -> u64
Returns an index to the node which the parent of both the note and note metadata.
Trait Implementations§
source§impl Clone for BlockNoteIndex
impl Clone for BlockNoteIndex
source§fn clone(&self) -> BlockNoteIndex
fn clone(&self) -> BlockNoteIndex
Returns a copy of the value. Read more
1.0.0 · 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 BlockNoteIndex
impl Debug for BlockNoteIndex
source§impl PartialEq for BlockNoteIndex
impl PartialEq for BlockNoteIndex
source§fn eq(&self, other: &BlockNoteIndex) -> bool
fn eq(&self, other: &BlockNoteIndex) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for BlockNoteIndex
impl Eq for BlockNoteIndex
impl StructuralPartialEq for BlockNoteIndex
Auto Trait Implementations§
impl Freeze for BlockNoteIndex
impl RefUnwindSafe for BlockNoteIndex
impl Send for BlockNoteIndex
impl Sync for BlockNoteIndex
impl Unpin for BlockNoteIndex
impl UnwindSafe for BlockNoteIndex
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