Struct bee_message::output::OutputId
source · pub struct OutputId { /* private fields */ }Expand description
The identifier of an Output.
Implementations§
source§impl OutputId
impl OutputId
sourcepub fn new(transaction_id: TransactionId, index: u16) -> Result<Self, Error>
pub fn new(transaction_id: TransactionId, index: u16) -> Result<Self, Error>
Creates a new OutputId.
sourcepub fn transaction_id(&self) -> &TransactionId
pub fn transaction_id(&self) -> &TransactionId
Returns the TransactionId of an OutputId.
sourcepub fn split(self) -> (TransactionId, u16)
pub fn split(self) -> (TransactionId, u16)
Splits an OutputId into its TransactionId and index.
Trait Implementations§
source§impl Ord for OutputId
impl Ord for OutputId
source§impl Packable for OutputId
impl Packable for OutputId
source§fn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length of the packed bytes.
source§fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
Packs the instance to bytes and writes them to the passed writer.
source§fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>( reader: &mut R ) -> Result<Self, Self::Error>
Reads bytes from the passed reader and unpacks them into an instance.
source§fn pack_new(&self) -> Vec<u8, Global>
fn pack_new(&self) -> Vec<u8, Global>
Packs the instance to bytes and writes them to a newly allocated vector.
source§impl PartialEq<OutputId> for OutputId
impl PartialEq<OutputId> for OutputId
source§impl PartialOrd<OutputId> for OutputId
impl PartialOrd<OutputId> for OutputId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more