Struct bee_ledger::types::OutputDiff [−][src]
pub struct OutputDiff { /* fields omitted */ }Expand description
A type to record output and treasury changes that happened within a milestone.
Implementations
impl OutputDiff[src]
impl OutputDiff[src]pub fn new(
created_outputs: Vec<OutputId>,
consumed_outputs: Vec<OutputId>,
treasury_diff: Option<TreasuryDiff>
) -> Self[src]
pub fn new(
created_outputs: Vec<OutputId>,
consumed_outputs: Vec<OutputId>,
treasury_diff: Option<TreasuryDiff>
) -> Self[src]Creates a new OutputDiff.
pub fn created_outputs(&self) -> &[OutputId][src]
pub fn created_outputs(&self) -> &[OutputId][src]Returns the created outputs of the OutputDiff.
pub fn consumed_outputs(&self) -> &[OutputId][src]
pub fn consumed_outputs(&self) -> &[OutputId][src]Returns the consumed outputs of the OutputDiff.
pub fn treasury_diff(&self) -> Option<&TreasuryDiff>[src]
pub fn treasury_diff(&self) -> Option<&TreasuryDiff>[src]Returns the treasury diff of the OutputDiff.
Trait Implementations
impl Debug for OutputDiff[src]
impl Debug for OutputDiff[src]impl Packable for OutputDiff[src]
impl Packable for OutputDiff[src]fn packed_len(&self) -> usize[src]
fn packed_len(&self) -> usize[src]Returns the length of the packed bytes.
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>[src]
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>[src]Packs the instance to bytes and writes them to the passed writer.
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>[src]
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>[src]Reads bytes from the passed reader and unpacks them into an instance.
fn pack_new(&self) -> Vec<u8, Global>[src]
fn pack_new(&self) -> Vec<u8, Global>[src]Packs the instance to bytes and writes them to a newly allocated vector.
impl PartialEq<OutputDiff> for OutputDiff[src]
impl PartialEq<OutputDiff> for OutputDiff[src]fn eq(&self, other: &OutputDiff) -> bool[src]
fn eq(&self, other: &OutputDiff) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &OutputDiff) -> bool[src]
fn ne(&self, other: &OutputDiff) -> bool[src]This method tests for !=.
impl Eq for OutputDiff[src]
impl StructuralEq for OutputDiff[src]
impl StructuralPartialEq for OutputDiff[src]
Auto Trait Implementations
impl RefUnwindSafe for OutputDiff
impl Send for OutputDiff
impl Sync for OutputDiff
impl Unpin for OutputDiff
impl UnwindSafe for OutputDiff
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self