[−][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.
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyMeta
impl Send for KeyMeta
impl Sync for KeyMeta
impl Unpin for KeyMeta
impl UnwindSafe for KeyMeta
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,