pub struct Subspace { /* private fields */ }
Expand description
Subspace provides a convenient way to use Tuple
to define
namespaces for different categories of data.
Implementations
sourceimpl Subspace
impl Subspace
sourcepub fn pack_with_versionstamp(&self, tuple: &Tuple) -> FdbResult<Bytes>
pub fn pack_with_versionstamp(&self, tuple: &Tuple) -> FdbResult<Bytes>
Get the key encoding of the specified Tuple
in this
Subspace
for use with SetVersionstampedKey
.
Panic
The index where incomplete versionstamp is located is a 32-bit
little-endian integer. If the generated index overflows
u32
, then this function panics.
Trait Implementations
sourceimpl Ord for Subspace
impl Ord for Subspace
sourceimpl PartialOrd<Subspace> for Subspace
impl PartialOrd<Subspace> for Subspace
sourcefn partial_cmp(&self, other: &Subspace) -> Option<Ordering>
fn partial_cmp(&self, other: &Subspace) -> 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
impl Eq for Subspace
impl StructuralEq for Subspace
impl StructuralPartialEq for Subspace
Auto Trait Implementations
impl RefUnwindSafe for Subspace
impl Send for Subspace
impl Sync for Subspace
impl Unpin for Subspace
impl UnwindSafe for Subspace
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more