#[repr(C)]pub struct PreRctOutputId {
pub amount: Amount,
pub amount_index: AmountIndex,
}Expand description
A identifier for a pre-RCT Output.
This can also serve as an identifier for RctOutput’s
when PreRctOutputId::amount is set to 0, although,
in that case, only AmountIndex needs to be known.
§Size & Alignment
assert_eq!(size_of::<PreRctOutputId>(), 16);
assert_eq!(align_of::<PreRctOutputId>(), 8);Fields§
§amount: AmountAmount of the output.
This should be 0 if the output is an RctOutput.
amount_index: AmountIndexThe index of the output with the same amount.
In the case of Output’s, this is the index of the list
of outputs with the same clear amount.
In the case of RctOutput’s, this is the
global index of all RctOutputs
Implementations§
Source§impl PreRctOutputId
impl PreRctOutputId
Sourcepub fn to_bytes(&self) -> [u8; 16]
pub fn to_bytes(&self) -> [u8; 16]
Serializes the PreRctOutputId into bytes.
Sourcepub fn from_bytes(bytes: &[u8; 16]) -> Self
pub fn from_bytes(bytes: &[u8; 16]) -> Self
Deserializes the bytes into a PreRctOutputId
Trait Implementations§
Source§impl Clone for PreRctOutputId
impl Clone for PreRctOutputId
Source§fn clone(&self) -> PreRctOutputId
fn clone(&self) -> PreRctOutputId
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PreRctOutputId
Source§impl Debug for PreRctOutputId
impl Debug for PreRctOutputId
Source§impl<'de> Deserialize<'de> for PreRctOutputId
impl<'de> Deserialize<'de> for PreRctOutputId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for PreRctOutputId
Source§impl Hash for PreRctOutputId
impl Hash for PreRctOutputId
Source§impl Ord for PreRctOutputId
impl Ord for PreRctOutputId
Source§fn cmp(&self, other: &PreRctOutputId) -> Ordering
fn cmp(&self, other: &PreRctOutputId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PreRctOutputId
impl PartialEq for PreRctOutputId
Source§impl PartialOrd for PreRctOutputId
impl PartialOrd for PreRctOutputId
Source§impl Serialize for PreRctOutputId
impl Serialize for PreRctOutputId
impl StructuralPartialEq for PreRctOutputId
Auto Trait Implementations§
impl Freeze for PreRctOutputId
impl RefUnwindSafe for PreRctOutputId
impl Send for PreRctOutputId
impl Sync for PreRctOutputId
impl Unpin for PreRctOutputId
impl UnsafeUnpin for PreRctOutputId
impl UnwindSafe for PreRctOutputId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes