KeyDeserializer

Struct KeyDeserializer 

Source
pub struct KeyDeserializer<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> KeyDeserializer<'a>

Source

pub fn from_bytes(buffer: &'a [u8]) -> Self

Source

pub fn remaining(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Source

pub fn position(&self) -> usize

Source

pub fn read_bool(&mut self) -> Result<bool>

Source

pub fn read_f32(&mut self) -> Result<f32>

Source

pub fn read_f64(&mut self) -> Result<f64>

Source

pub fn read_i8(&mut self) -> Result<i8>

Source

pub fn read_i16(&mut self) -> Result<i16>

Source

pub fn read_i32(&mut self) -> Result<i32>

Source

pub fn read_i64(&mut self) -> Result<i64>

Source

pub fn read_i128(&mut self) -> Result<i128>

Source

pub fn read_u8(&mut self) -> Result<u8>

Source

pub fn read_u16(&mut self) -> Result<u16>

Source

pub fn read_u32(&mut self) -> Result<u32>

Source

pub fn read_u64(&mut self) -> Result<u64>

Source

pub fn read_u128(&mut self) -> Result<u128>

Source

pub fn read_bytes(&mut self) -> Result<Vec<u8>>

Source

pub fn read_str(&mut self) -> Result<String>

Source

pub fn read_source_id(&mut self) -> Result<SourceId>

Source

pub fn read_index_id(&mut self) -> Result<IndexId>

Source

pub fn read_date(&mut self) -> Result<Date>

Source

pub fn read_datetime(&mut self) -> Result<DateTime>

Source

pub fn read_time(&mut self) -> Result<Time>

Source

pub fn read_duration(&mut self) -> Result<Duration>

Source

pub fn read_row_number(&mut self) -> Result<RowNumber>

Source

pub fn read_identity_id(&mut self) -> Result<IdentityId>

Source

pub fn read_uuid4(&mut self) -> Result<Uuid4>

Source

pub fn read_uuid7(&mut self) -> Result<Uuid7>

Source

pub fn read_blob(&mut self) -> Result<Blob>

Source

pub fn read_int(&mut self) -> Result<Int>

Source

pub fn read_uint(&mut self) -> Result<Uint>

Source

pub fn read_decimal(&mut self) -> Result<Decimal>

Source

pub fn read_value(&mut self) -> Result<Value>

Source

pub fn read_raw(&mut self, count: usize) -> Result<&'a [u8]>

Auto Trait Implementations§

§

impl<'a> Freeze for KeyDeserializer<'a>

§

impl<'a> RefUnwindSafe for KeyDeserializer<'a>

§

impl<'a> Send for KeyDeserializer<'a>

§

impl<'a> Sync for KeyDeserializer<'a>

§

impl<'a> Unpin for KeyDeserializer<'a>

§

impl<'a> UnwindSafe for KeyDeserializer<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.