pub struct EncodedKey<T: 'static> {
pub inner: Vec<u8>,
/* private fields */
}Expand description
The key for leveldb, which impled db_key::Key. (db-key 0.0.5 only impl it for i32)
You can serialize you key to Vec
Fields§
§inner: Vec<u8>Trait Implementations§
Source§impl<T: Debug + 'static> Debug for EncodedKey<T>
impl<T: Debug + 'static> Debug for EncodedKey<T>
Source§impl<T> From<&[u8]> for EncodedKey<T>
impl<T> From<&[u8]> for EncodedKey<T>
Source§impl<T> Key for EncodedKey<T>
impl<T> Key for EncodedKey<T>
Source§impl<T: PartialEq + 'static> PartialEq for EncodedKey<T>
impl<T: PartialEq + 'static> PartialEq for EncodedKey<T>
impl<T: 'static> StructuralPartialEq for EncodedKey<T>
Auto Trait Implementations§
impl<T> Freeze for EncodedKey<T>
impl<T> RefUnwindSafe for EncodedKey<T>where
T: RefUnwindSafe,
impl<T> Send for EncodedKey<T>where
T: Send,
impl<T> Sync for EncodedKey<T>where
T: Sync,
impl<T> Unpin for EncodedKey<T>where
T: Unpin,
impl<T> UnwindSafe for EncodedKey<T>where
T: UnwindSafe,
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