FieldsStore

Struct FieldsStore 

Source
pub struct FieldsStore<'a> { /* private fields */ }
Expand description

A key-value store of fields saved. Each type is kept in its own multimap.

Implementations§

Source§

impl FieldsStore<'_>

Source

pub fn get_u8(&self, filter: &str) -> Option<&u8>

Source

pub fn get_u8_multi(&self, filter: &str) -> Option<&[u8]>

Source

pub fn get_u16(&self, filter: &str) -> Option<&u16>

Source

pub fn get_u16_multi(&self, filter: &str) -> Option<&[u16]>

Source

pub fn get_u32(&self, filter: &str) -> Option<&u32>

Source

pub fn get_u32_multi(&self, filter: &str) -> Option<&[u32]>

Source

pub fn get_u64(&self, filter: &str) -> Option<&u64>

Source

pub fn get_u64_multi(&self, filter: &str) -> Option<&[u64]>

Source

pub fn get_i8(&self, filter: &str) -> Option<&i8>

Source

pub fn get_i8_multi(&self, filter: &str) -> Option<&[i8]>

Source

pub fn get_i16(&self, filter: &str) -> Option<&i16>

Source

pub fn get_i16_multi(&self, filter: &str) -> Option<&[i16]>

Source

pub fn get_i32(&self, filter: &str) -> Option<&i32>

Source

pub fn get_i32_multi(&self, filter: &str) -> Option<&[i32]>

Source

pub fn get_i64(&self, filter: &str) -> Option<&i64>

Source

pub fn get_i64_multi(&self, filter: &str) -> Option<&[i64]>

Source

pub fn get_bytes(&self, filter: &str) -> Option<&[u8]>

Source

pub fn get_bytes_multi(&self, filter: &str) -> Option<&[&[u8]]>

Source

pub fn insert_u8(&mut self, filter: &str, value: u8)

Source

pub fn insert_u16(&mut self, filter: &str, value: u16)

Source

pub fn insert_u32(&mut self, filter: &str, value: u32)

Source

pub fn insert_u64(&mut self, filter: &str, value: u64)

Source

pub fn insert_i8(&mut self, filter: &str, value: i8)

Source

pub fn insert_i16(&mut self, filter: &str, value: i16)

Source

pub fn insert_i32(&mut self, filter: &str, value: i32)

Source

pub fn insert_i64(&mut self, filter: &str, value: i64)

Source§

impl<'a> FieldsStore<'a>

Source

pub fn insert_bytes(&mut self, filter: &str, value: &'a [u8])

Trait Implementations§

Source§

impl<'a> Default for FieldsStore<'a>

Source§

fn default() -> FieldsStore<'a>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for FieldsStore<'a>

§

impl<'a> RefUnwindSafe for FieldsStore<'a>

§

impl<'a> Send for FieldsStore<'a>

§

impl<'a> Sync for FieldsStore<'a>

§

impl<'a> Unpin for FieldsStore<'a>

§

impl<'a> UnwindSafe for FieldsStore<'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, 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.