pub struct TurnSequence(pub u64);Expand description
Position of a committed turn within a session’s history, assigned
exactly once by ConversationState::commit. The ordering rule —
completed turns only, dense sequence assigned at commit — is this
component’s policy, not a fact-layer invariant.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for TurnSequence
impl Clone for TurnSequence
Source§fn clone(&self) -> TurnSequence
fn clone(&self) -> TurnSequence
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 TurnSequence
Source§impl Debug for TurnSequence
impl Debug for TurnSequence
Source§impl<'de> Deserialize<'de> for TurnSequence
impl<'de> Deserialize<'de> for TurnSequence
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 TurnSequence
Source§impl Hash for TurnSequence
impl Hash for TurnSequence
Source§impl Ord for TurnSequence
impl Ord for TurnSequence
Source§fn cmp(&self, other: &TurnSequence) -> Ordering
fn cmp(&self, other: &TurnSequence) -> 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 TurnSequence
impl PartialEq for TurnSequence
Source§impl PartialOrd for TurnSequence
impl PartialOrd for TurnSequence
Source§impl Serialize for TurnSequence
impl Serialize for TurnSequence
impl StructuralPartialEq for TurnSequence
Auto Trait Implementations§
impl Freeze for TurnSequence
impl RefUnwindSafe for TurnSequence
impl Send for TurnSequence
impl Sync for TurnSequence
impl Unpin for TurnSequence
impl UnsafeUnpin for TurnSequence
impl UnwindSafe for TurnSequence
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