Struct miden_objects::notes::NoteOrigin
source · pub struct NoteOrigin {
pub block_num: u32,
pub node_index: NodeIndex,
}Expand description
Contains information about the origin of a note.
Fields§
§block_num: u32The block number the note was created in.
node_index: NodeIndexThe index of the note in the note Merkle tree of the block the note was created in.
Trait Implementations§
source§impl Clone for NoteOrigin
impl Clone for NoteOrigin
source§fn clone(&self) -> NoteOrigin
fn clone(&self) -> NoteOrigin
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 NoteOrigin
impl Debug for NoteOrigin
source§impl Deserializable for NoteOrigin
impl Deserializable for NoteOrigin
source§fn read_from<R: ByteReader>(
source: &mut R,
) -> Result<Self, DeserializationError>
fn read_from<R: ByteReader>( source: &mut R, ) -> Result<Self, DeserializationError>
Reads a sequence of bytes from the provided
source, attempts to deserialize these bytes
into Self, and returns the result. Read moresource§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
source§impl PartialEq for NoteOrigin
impl PartialEq for NoteOrigin
source§fn eq(&self, other: &NoteOrigin) -> bool
fn eq(&self, other: &NoteOrigin) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serializable for NoteOrigin
impl Serializable for NoteOrigin
source§fn write_into<W: ByteWriter>(&self, target: &mut W)
fn write_into<W: ByteWriter>(&self, target: &mut W)
Serializes
self into bytes and writes these bytes into the target.source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self. Read more
impl Eq for NoteOrigin
impl StructuralPartialEq for NoteOrigin
Auto Trait Implementations§
impl Freeze for NoteOrigin
impl RefUnwindSafe for NoteOrigin
impl Send for NoteOrigin
impl Sync for NoteOrigin
impl Unpin for NoteOrigin
impl UnwindSafe for NoteOrigin
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)