Struct bee_message::output::OutputId
source · [−]pub struct OutputId { /* private fields */ }Expand description
The identifier of an Output.
Implementations
sourceimpl 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.
Trait Implementations
sourceimpl Ord for OutputId
impl Ord for OutputId
sourceimpl Packable for OutputId
impl Packable for OutputId
sourcefn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length of the packed bytes.
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourceimpl PartialOrd<OutputId> for OutputId
impl PartialOrd<OutputId> for OutputId
sourcefn partial_cmp(&self, other: &OutputId) -> Option<Ordering>
fn partial_cmp(&self, other: &OutputId) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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
impl Copy for OutputId
impl Eq for OutputId
impl StructuralEq for OutputId
impl StructuralPartialEq for OutputId
Auto Trait Implementations
impl RefUnwindSafe for OutputId
impl Send for OutputId
impl Sync for OutputId
impl Unpin for OutputId
impl UnwindSafe for OutputId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more