pub enum KeyBuf {
Inline {
len: u8,
buf: [u8; 39],
},
Spill(Vec<u8>),
}Variants§
Implementations§
Source§impl KeyBuf
impl KeyBuf
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push(&mut self, byte: u8)
pub fn extend_from_slice(&mut self, slice: &[u8])
pub fn finish(self) -> EncodedKey
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyBuf
impl RefUnwindSafe for KeyBuf
impl Send for KeyBuf
impl Sync for KeyBuf
impl Unpin for KeyBuf
impl UnsafeUnpin for KeyBuf
impl UnwindSafe for KeyBuf
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