pub struct QueryStableOrderV2 { /* private fields */ }Expand description
A validator-proven stable total order.
Implementations§
Source§impl QueryStableOrderV2
impl QueryStableOrderV2
Sourcepub const fn new(
terms: Vec<QueryOrderTermV2>,
identity_tiebreakers: Vec<BindingId>,
) -> Self
pub const fn new( terms: Vec<QueryOrderTermV2>, identity_tiebreakers: Vec<BindingId>, ) -> Self
Construct one stable order with its explicit identity tie breaker.
Sourcepub fn terms(&self) -> &[QueryOrderTermV2]
pub fn terms(&self) -> &[QueryOrderTermV2]
Return public field terms.
Sourcepub fn identity_tiebreakers(&self) -> &[BindingId]
pub fn identity_tiebreakers(&self) -> &[BindingId]
Return the canonical identity tuple that makes the order total.
Trait Implementations§
Source§impl Clone for QueryStableOrderV2
impl Clone for QueryStableOrderV2
Source§fn clone(&self) -> QueryStableOrderV2
fn clone(&self) -> QueryStableOrderV2
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 moreSource§impl Debug for QueryStableOrderV2
impl Debug for QueryStableOrderV2
Source§impl<'de> Deserialize<'de> for QueryStableOrderV2
impl<'de> Deserialize<'de> for QueryStableOrderV2
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 QueryStableOrderV2
Source§impl PartialEq for QueryStableOrderV2
impl PartialEq for QueryStableOrderV2
Source§impl Serialize for QueryStableOrderV2
impl Serialize for QueryStableOrderV2
impl StructuralPartialEq for QueryStableOrderV2
Auto Trait Implementations§
impl Freeze for QueryStableOrderV2
impl RefUnwindSafe for QueryStableOrderV2
impl Send for QueryStableOrderV2
impl Sync for QueryStableOrderV2
impl Unpin for QueryStableOrderV2
impl UnsafeUnpin for QueryStableOrderV2
impl UnwindSafe for QueryStableOrderV2
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