pub struct CouncilJournalPosition(/* private fields */);Expand description
An ordinal in the council journal. It cannot be a ceremony cursor.
Implementations§
Source§impl CouncilJournalPosition
impl CouncilJournalPosition
pub const FIRST: Self
pub fn new(value: u64) -> Result<Self, DomainError>
pub fn value(self) -> u64
pub fn checked_next(self) -> Result<Self, DomainError>
Trait Implementations§
Source§impl Clone for CouncilJournalPosition
impl Clone for CouncilJournalPosition
Source§fn clone(&self) -> CouncilJournalPosition
fn clone(&self) -> CouncilJournalPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CouncilJournalPosition
Source§impl Debug for CouncilJournalPosition
impl Debug for CouncilJournalPosition
Source§impl<'de> Deserialize<'de> for CouncilJournalPosition
impl<'de> Deserialize<'de> for CouncilJournalPosition
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 CouncilJournalPosition
Source§impl From<CouncilJournalPosition> for u64
impl From<CouncilJournalPosition> for u64
Source§fn from(value: CouncilJournalPosition) -> Self
fn from(value: CouncilJournalPosition) -> Self
Converts to this type from the input type.
Source§impl Ord for CouncilJournalPosition
impl Ord for CouncilJournalPosition
Source§fn cmp(&self, other: &CouncilJournalPosition) -> Ordering
fn cmp(&self, other: &CouncilJournalPosition) -> Ordering
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 CouncilJournalPosition
impl PartialEq for CouncilJournalPosition
Source§impl PartialOrd for CouncilJournalPosition
impl PartialOrd for CouncilJournalPosition
Source§impl Serialize for CouncilJournalPosition
impl Serialize for CouncilJournalPosition
impl StructuralPartialEq for CouncilJournalPosition
Auto Trait Implementations§
impl Freeze for CouncilJournalPosition
impl RefUnwindSafe for CouncilJournalPosition
impl Send for CouncilJournalPosition
impl Sync for CouncilJournalPosition
impl Unpin for CouncilJournalPosition
impl UnsafeUnpin for CouncilJournalPosition
impl UnwindSafe for CouncilJournalPosition
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