[−][src]Struct simpledb::encoding::KeyMeta
Meta data struct.
Fields
id: u64
Auto-increment key ID.
key_type: KeyType
Data type.
count: u64
Total items count.
extra: Option<Vec<u8>>
Extra data.
Implementations
impl KeyMeta
[src]
pub fn new(id: u64, key_type: KeyType) -> KeyMeta
[src]
Create a new KeyMeta
instance.
pub fn from_bytes(input: &[u8]) -> KeyMeta
[src]
Decode KeyMeta
from bytes.
pub fn get_bytes(&self) -> BytesMut
[src]
Get bytes.
pub fn decode_list_extra(&self) -> (i64, i64)
[src]
Decode extra data for list
data type.
pub fn encode_list_extra(&mut self, left: i64, right: i64)
[src]
Encode extra data for list
data type.
pub fn decode_sorted_list_extra(&self) -> (u64, u32, u32)
[src]
Decode extra data for sorted list
data type.
returns (sequenceu64, left_deleted_countu32, right_deleted_countu32)
pub fn encode_sorted_list_extra(
&mut self,
sequence: u64,
left_deleted_count: u32,
right_deleted_count: u32
)
[src]
&mut self,
sequence: u64,
left_deleted_count: u32,
right_deleted_count: u32
)
Encode extra data for sorted list
data type.
pub fn decode_sorted_set_extra(&self) -> (u32, u8)
[src]
pub fn encode_sorted_set_extra(&mut self, deleted_count: u32, score_len: u8)
[src]
Encode extra data for sorted set
data type.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyMeta
[src]
impl Send for KeyMeta
[src]
impl Sync for KeyMeta
[src]
impl Unpin for KeyMeta
[src]
impl UnwindSafe for KeyMeta
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,