Struct mentat_db::types::Partition
[−]
[src]
Represents one partition of the entid space.
Fields
start: i64
The first entid in the partition.
index: i64
The next entid to be allocated in the partition.
Methods
impl Partition
[src]
impl Partition
pub fn new(start: i64, next: i64) -> Partition
[src]
pub fn new(start: i64, next: i64) -> Partition
pub fn contains_entid(&self, e: i64) -> bool
[src]
pub fn contains_entid(&self, e: i64) -> bool
Trait Implementations
impl Clone for Partition
[src]
impl Clone for Partition
fn clone(&self) -> Partition
[src]
fn clone(&self) -> Partition
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Partition
[src]
impl Debug for Partition
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Partition
[src]
impl Eq for Partition
impl Hash for Partition
[src]
impl Hash for Partition
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Ord for Partition
[src]
impl Ord for Partition
fn cmp(&self, __arg_0: &Partition) -> Ordering
[src]
fn cmp(&self, __arg_0: &Partition) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for Partition
[src]
impl PartialOrd for Partition
fn partial_cmp(&self, __arg_0: &Partition) -> Option<Ordering>
[src]
fn partial_cmp(&self, __arg_0: &Partition) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Partition) -> bool
[src]
fn lt(&self, __arg_0: &Partition) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Partition) -> bool
[src]
fn le(&self, __arg_0: &Partition) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Partition) -> bool
[src]
fn gt(&self, __arg_0: &Partition) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Partition) -> bool
[src]
fn ge(&self, __arg_0: &Partition) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq for Partition
[src]
impl PartialEq for Partition