Struct bee_message::output::OutputId[][src]

pub struct OutputId { /* fields omitted */ }

The identifier of an Output.

Implementations

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 Clone for OutputId[src]

impl Copy for OutputId[src]

impl Debug for OutputId[src]

impl Display for OutputId[src]

impl Eq for OutputId[src]

impl From<OutputId> for UtxoInput[src]

impl FromStr for OutputId[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for OutputId[src]

impl Ord for OutputId[src]

impl Packable for OutputId[src]

type Error = Error

Associated error type.

impl PartialEq<OutputId> for OutputId[src]

impl PartialOrd<OutputId> for OutputId[src]

impl StructuralEq for OutputId[src]

impl StructuralPartialEq for OutputId[src]

impl TryFrom<[u8; 34]> for OutputId[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.