pub struct RoundId(/* private fields */);Expand description
Identifier for a past round.
It is the txid of the round tx.
Implementations§
Methods from Deref<Target = Txid>§
Sourcepub fn as_raw_hash(&self) -> &Hash
pub fn as_raw_hash(&self) -> &Hash
Returns a reference to the inner hash (sha256, sh256d etc.).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RoundId
impl<'de> Deserialize<'de> for RoundId
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for RoundId
impl Ord for RoundId
Source§impl PartialOrd for RoundId
impl PartialOrd for RoundId
impl Copy for RoundId
impl Eq for RoundId
impl StructuralPartialEq for RoundId
Auto Trait Implementations§
impl Freeze for RoundId
impl RefUnwindSafe for RoundId
impl Send for RoundId
impl Sync for RoundId
impl Unpin for RoundId
impl UnwindSafe for RoundId
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
Mutably borrows from an owned value. Read more