[−][src]Enum ledb_actix::KeyData
The data of key
Variants
Int(i64)
Float(OrderedFloat<f64>)
String(String)
Bool(bool)
Implementations
impl KeyData
[src]
pub fn from_raw(typ: KeyType, raw: &[u8]) -> Result<KeyData, Error>
[src]
Converts binary representation into key data
pub fn as_raw(&self) -> &[u8]
[src]
Converts key data into binary representation
pub fn from_val(val: &Value) -> Option<KeyData>
[src]
Converts generic value into key data
pub fn is_empty(&self) -> bool
[src]
Value is empty
pub fn as_type(&self, typ: KeyType) -> Option<&KeyData>
[src]
Simple data type casting
pub fn to_type(&self, typ: KeyType) -> Option<Cow<KeyData>>
[src]
Convert key data into specified type
pub fn get_type(&self) -> KeyType
[src]
Get the actual type of key data
Trait Implementations
impl Clone for KeyData
[src]
impl Debug for KeyData
[src]
impl<'de> Deserialize<'de> for KeyData
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<KeyData, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<KeyData, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for KeyData
[src]
impl<'a> From<&'a [u8]> for KeyData
[src]
impl<'a> From<&'a String> for KeyData
[src]
impl<'a> From<&'a Vec<u8>> for KeyData
[src]
impl<'a> From<&'a bool> for KeyData
[src]
impl<'a> From<&'a f64> for KeyData
[src]
impl<'a> From<&'a i64> for KeyData
[src]
impl<'a> From<&'a str> for KeyData
[src]
impl From<String> for KeyData
[src]
impl From<Vec<u8>> for KeyData
[src]
impl From<bool> for KeyData
[src]
impl From<f64> for KeyData
[src]
impl From<i64> for KeyData
[src]
impl Hash for KeyData
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for KeyData
[src]
fn cmp(&self, other: &KeyData) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<KeyData> for KeyData
[src]
impl PartialOrd<KeyData> for KeyData
[src]
fn partial_cmp(&self, other: &KeyData) -> Option<Ordering>
[src]
fn lt(&self, other: &KeyData) -> bool
[src]
fn le(&self, other: &KeyData) -> bool
[src]
fn gt(&self, other: &KeyData) -> bool
[src]
fn ge(&self, other: &KeyData) -> bool
[src]
impl Serialize for KeyData
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralEq for KeyData
[src]
impl StructuralPartialEq for KeyData
[src]
Auto Trait Implementations
impl RefUnwindSafe for KeyData
impl Send for KeyData
impl Sync for KeyData
impl Unpin for KeyData
impl UnwindSafe for KeyData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Clone + Send + Sync,
T: 'a + Clone + Send + Sync,
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
T: 'a + Clone,
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,