pub enum RandomDrawAddress {
Sequential {
position: u64,
},
OperationV1(RandomOperationAddressV1),
}Expand description
Persisted address of a random draw.
Variants§
Implementations§
Source§impl RandomDrawAddress
impl RandomDrawAddress
pub const fn sequential_position(&self) -> Option<u64>
Trait Implementations§
Source§impl Clone for RandomDrawAddress
impl Clone for RandomDrawAddress
Source§impl Debug for RandomDrawAddress
impl Debug for RandomDrawAddress
Source§impl<'de> Deserialize<'de> for RandomDrawAddress
impl<'de> Deserialize<'de> for RandomDrawAddress
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RandomDrawAddress
Source§impl Ord for RandomDrawAddress
impl Ord for RandomDrawAddress
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RandomDrawAddress
impl PartialEq for RandomDrawAddress
Source§impl PartialOrd for RandomDrawAddress
impl PartialOrd for RandomDrawAddress
Source§impl Serialize for RandomDrawAddress
impl Serialize for RandomDrawAddress
impl StructuralPartialEq for RandomDrawAddress
Auto Trait Implementations§
impl Freeze for RandomDrawAddress
impl RefUnwindSafe for RandomDrawAddress
impl Send for RandomDrawAddress
impl Sync for RandomDrawAddress
impl Unpin for RandomDrawAddress
impl UnsafeUnpin for RandomDrawAddress
impl UnwindSafe for RandomDrawAddress
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