Struct bee_message::output::OutputId [−][src]
pub struct OutputId { /* fields omitted */ }The identifier of an Output.
Implementations
impl OutputId[src]
impl OutputId[src]pub fn new(transaction_id: TransactionId, index: u16) -> Result<Self, Error>[src]
Creates a new OutputId.
pub fn transaction_id(&self) -> &TransactionId[src]
Returns the TransactionId of an OutputId.
pub fn index(&self) -> u16[src]
Returns the index of an OutputId.
pub fn split(self) -> (TransactionId, u16)[src]
Splits an OutputId into its TransactionId and index.
Trait Implementations
impl Packable for OutputId[src]
impl Packable for OutputId[src]type Error = Error
Associated error type.
fn packed_len(&self) -> usize[src]
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>[src]
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>[src]
reader: &mut R
) -> Result<Self, Self::Error>
pub fn pack_new(&self) -> Vec<u8, Global>[src]
pub fn unpack<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized, [src]
R: Read + ?Sized,
pub fn unpack_unchecked<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized, [src]
R: Read + ?Sized,
impl PartialOrd<OutputId> for OutputId[src]
impl PartialOrd<OutputId> for OutputId[src]impl StructuralEq for OutputId[src]
impl StructuralEq for OutputId[src]impl StructuralPartialEq for OutputId[src]
impl StructuralPartialEq for OutputId[src]Auto Trait Implementations
impl RefUnwindSafe for OutputId
impl RefUnwindSafe for OutputIdimpl UnwindSafe for OutputId
impl UnwindSafe for OutputId