pub struct CommonCodec;Implementations§
Source§impl CommonCodec
impl CommonCodec
pub fn encode_bool(data: bool) -> Vec<u8> ⓘ
pub fn decode_bool(bytes: &[u8]) -> QuillSQLResult<DecodedData<bool>>
pub fn encode_u8(data: u8) -> Vec<u8> ⓘ
pub fn decode_u8(bytes: &[u8]) -> QuillSQLResult<DecodedData<u8>>
pub fn encode_u16(data: u16) -> Vec<u8> ⓘ
pub fn decode_u16(bytes: &[u8]) -> QuillSQLResult<DecodedData<u16>>
pub fn encode_u32(data: u32) -> Vec<u8> ⓘ
pub fn decode_u32(bytes: &[u8]) -> QuillSQLResult<DecodedData<u32>>
pub fn encode_u64(data: u64) -> Vec<u8> ⓘ
pub fn decode_u64(bytes: &[u8]) -> QuillSQLResult<DecodedData<u64>>
pub fn encode_i8(data: i8) -> Vec<u8> ⓘ
pub fn decode_i8(bytes: &[u8]) -> QuillSQLResult<DecodedData<i8>>
pub fn encode_i16(data: i16) -> Vec<u8> ⓘ
pub fn decode_i16(bytes: &[u8]) -> QuillSQLResult<DecodedData<i16>>
pub fn encode_i32(data: i32) -> Vec<u8> ⓘ
pub fn decode_i32(bytes: &[u8]) -> QuillSQLResult<DecodedData<i32>>
pub fn encode_i64(data: i64) -> Vec<u8> ⓘ
pub fn decode_i64(bytes: &[u8]) -> QuillSQLResult<DecodedData<i64>>
pub fn encode_f32(data: f32) -> Vec<u8> ⓘ
pub fn decode_f32(bytes: &[u8]) -> QuillSQLResult<DecodedData<f32>>
pub fn encode_f64(data: f64) -> Vec<u8> ⓘ
pub fn decode_f64(bytes: &[u8]) -> QuillSQLResult<DecodedData<f64>>
pub fn encode_string(data: &String) -> Vec<u8> ⓘ
pub fn decode_string(bytes: &[u8]) -> QuillSQLResult<DecodedData<String>>
Auto Trait Implementations§
impl Freeze for CommonCodec
impl RefUnwindSafe for CommonCodec
impl Send for CommonCodec
impl Sync for CommonCodec
impl Unpin for CommonCodec
impl UnsafeUnpin for CommonCodec
impl UnwindSafe for CommonCodec
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