pub struct Subspace { /* private fields */ }
Expand description
Subspace provides a convenient way to use Tuple
to define
namespaces for different categories of data.
Implementations§
source§impl 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§
source§impl Ord for Subspace
impl Ord for Subspace
source§impl PartialEq<Subspace> for Subspace
impl PartialEq<Subspace> for Subspace
source§impl PartialOrd<Subspace> for Subspace
impl PartialOrd<Subspace> for Subspace
1.0.0 · source§fn 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 moreimpl 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§
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