Struct cassandra_protocol::token::Murmur3Token
source · [−]pub struct Murmur3Token {
pub value: i64,
}
Expand description
A token on the ring. Only Murmur3 tokens are supported for now.
Fields
value: i64
Implementations
sourceimpl Murmur3Token
impl Murmur3Token
pub fn new(value: i64) -> Murmur3Token
Trait Implementations
sourceimpl Clone for Murmur3Token
impl Clone for Murmur3Token
sourcefn clone(&self) -> Murmur3Token
fn clone(&self) -> Murmur3Token
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Murmur3Token
impl Debug for Murmur3Token
sourceimpl Default for Murmur3Token
impl Default for Murmur3Token
sourcefn default() -> Murmur3Token
fn default() -> Murmur3Token
Returns the “default value” for a type. Read more
sourceimpl From<i64> for Murmur3Token
impl From<i64> for Murmur3Token
sourceimpl Hash for Murmur3Token
impl Hash for Murmur3Token
sourceimpl Ord for Murmur3Token
impl Ord for Murmur3Token
sourceimpl PartialEq<Murmur3Token> for Murmur3Token
impl PartialEq<Murmur3Token> for Murmur3Token
sourcefn eq(&self, other: &Murmur3Token) -> bool
fn eq(&self, other: &Murmur3Token) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Murmur3Token) -> bool
fn ne(&self, other: &Murmur3Token) -> bool
This method tests for !=
.
sourceimpl PartialOrd<Murmur3Token> for Murmur3Token
impl PartialOrd<Murmur3Token> for Murmur3Token
sourcefn partial_cmp(&self, other: &Murmur3Token) -> Option<Ordering>
fn partial_cmp(&self, other: &Murmur3Token) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl TryFrom<String> for Murmur3Token
impl TryFrom<String> for Murmur3Token
impl Copy for Murmur3Token
impl Eq for Murmur3Token
impl StructuralEq for Murmur3Token
impl StructuralPartialEq for Murmur3Token
Auto Trait Implementations
impl RefUnwindSafe for Murmur3Token
impl Send for Murmur3Token
impl Sync for Murmur3Token
impl Unpin for Murmur3Token
impl UnwindSafe for Murmur3Token
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more