pub struct StreamRevision(/* private fields */);Expand description
English:
Zero-based event position; the first event in a stream has revision 0.
日本語:
ゼロ始まりのイベント位置です。ストリームの最初のイベントはリビジョン 0 です。
Implementations§
Source§impl StreamRevision
impl StreamRevision
Sourcepub const fn new(value: u64) -> StreamRevision
pub const fn new(value: u64) -> StreamRevision
English:
Wraps value without checking whether a corresponding stream exists.
日本語:
対応するストリームの存在を確認せず value をラップします。
Sourcepub const fn value(self) -> u64
pub const fn value(self) -> u64
English:
Returns the zero-based event position.
日本語:
ゼロ始まりのイベント位置を返します。
Sourcepub const fn next(self) -> Option<StreamRevision>
pub const fn next(self) -> Option<StreamRevision>
English:
Returns the next revision, or None at u64::MAX.
日本語:
次のリビジョンを返します。u64::MAX では None を返します。
Trait Implementations§
Source§impl Clone for StreamRevision
impl Clone for StreamRevision
Source§fn clone(&self) -> StreamRevision
fn clone(&self) -> StreamRevision
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 StreamRevision
Source§impl Debug for StreamRevision
impl Debug for StreamRevision
impl Eq for StreamRevision
Source§impl Hash for StreamRevision
impl Hash for StreamRevision
Source§impl Ord for StreamRevision
impl Ord for StreamRevision
Source§fn cmp(&self, other: &StreamRevision) -> Ordering
fn cmp(&self, other: &StreamRevision) -> 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 StreamRevision
impl PartialEq for StreamRevision
Source§impl PartialOrd for StreamRevision
impl PartialOrd for StreamRevision
impl StructuralPartialEq for StreamRevision
Auto Trait Implementations§
impl Freeze for StreamRevision
impl RefUnwindSafe for StreamRevision
impl Send for StreamRevision
impl Sync for StreamRevision
impl Unpin for StreamRevision
impl UnsafeUnpin for StreamRevision
impl UnwindSafe for StreamRevision
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