Enum bonsaidb::core::key::KeyAttibuteValue
pub enum KeyAttibuteValue {
}
Expand description
A value used as part of KeyVisitor::visit_composite_attribute
.
Variants§
U8(u8)
An u8
value.
I8(i8)
An i8
value.
U16(u16)
An u16
value.
I16(i16)
An i16
value.
U32(u32)
An u32
value.
I32(i32)
An i32
value.
U64(u64)
An u64
value.
I64(i64)
An i64
value.
U128(u128)
An u128
value.
I128(i128)
An i128
value.
Usize(usize)
An usize
value.
Isize(isize)
An isize
value.
Bool(bool)
A bool
value.
Str(Cow<'static, str>)
A string value.
Bytes(Cow<'static, [u8]>)
A byte array value.
Trait Implementations§
§impl Clone for KeyAttibuteValue
impl Clone for KeyAttibuteValue
§fn clone(&self) -> KeyAttibuteValue
fn clone(&self) -> KeyAttibuteValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for KeyAttibuteValue
impl Debug for KeyAttibuteValue
§impl<'de> Deserialize<'de> for KeyAttibuteValue
impl<'de> Deserialize<'de> for KeyAttibuteValue
§fn deserialize<__D>(
__deserializer: __D
) -> Result<KeyAttibuteValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<KeyAttibuteValue, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<&'static [u8]> for KeyAttibuteValue
impl From<&'static [u8]> for KeyAttibuteValue
§fn from(value: &'static [u8]) -> KeyAttibuteValue
fn from(value: &'static [u8]) -> KeyAttibuteValue
Converts to this type from the input type.
§impl From<&'static str> for KeyAttibuteValue
impl From<&'static str> for KeyAttibuteValue
§fn from(value: &'static str) -> KeyAttibuteValue
fn from(value: &'static str) -> KeyAttibuteValue
Converts to this type from the input type.
§impl From<String> for KeyAttibuteValue
impl From<String> for KeyAttibuteValue
§fn from(value: String) -> KeyAttibuteValue
fn from(value: String) -> KeyAttibuteValue
Converts to this type from the input type.
§impl From<bool> for KeyAttibuteValue
impl From<bool> for KeyAttibuteValue
§fn from(value: bool) -> KeyAttibuteValue
fn from(value: bool) -> KeyAttibuteValue
Converts to this type from the input type.
§impl From<i128> for KeyAttibuteValue
impl From<i128> for KeyAttibuteValue
§fn from(value: i128) -> KeyAttibuteValue
fn from(value: i128) -> KeyAttibuteValue
Converts to this type from the input type.
§impl From<i16> for KeyAttibuteValue
impl From<i16> for KeyAttibuteValue
§fn from(value: i16) -> KeyAttibuteValue
fn from(value: i16) -> KeyAttibuteValue
Converts to this type from the input type.
§impl From<i32> for KeyAttibuteValue
impl From<i32> for KeyAttibuteValue
§fn from(value: i32) -> KeyAttibuteValue
fn from(value: i32) -> KeyAttibuteValue
Converts to this type from the input type.
§impl From<i64> for KeyAttibuteValue
impl From<i64> for KeyAttibuteValue
§fn from(value: i64) -> KeyAttibuteValue
fn from(value: i64) -> KeyAttibuteValue
Converts to this type from the input type.
§impl From<i8> for KeyAttibuteValue
impl From<i8> for KeyAttibuteValue
§fn from(value: i8) -> KeyAttibuteValue
fn from(value: i8) -> KeyAttibuteValue
Converts to this type from the input type.
§impl From<isize> for KeyAttibuteValue
impl From<isize> for KeyAttibuteValue
§fn from(value: isize) -> KeyAttibuteValue
fn from(value: isize) -> KeyAttibuteValue
Converts to this type from the input type.
§impl From<u128> for KeyAttibuteValue
impl From<u128> for KeyAttibuteValue
§fn from(value: u128) -> KeyAttibuteValue
fn from(value: u128) -> KeyAttibuteValue
Converts to this type from the input type.
§impl From<u16> for KeyAttibuteValue
impl From<u16> for KeyAttibuteValue
§fn from(value: u16) -> KeyAttibuteValue
fn from(value: u16) -> KeyAttibuteValue
Converts to this type from the input type.
§impl From<u32> for KeyAttibuteValue
impl From<u32> for KeyAttibuteValue
§fn from(value: u32) -> KeyAttibuteValue
fn from(value: u32) -> KeyAttibuteValue
Converts to this type from the input type.
§impl From<u64> for KeyAttibuteValue
impl From<u64> for KeyAttibuteValue
§fn from(value: u64) -> KeyAttibuteValue
fn from(value: u64) -> KeyAttibuteValue
Converts to this type from the input type.
§impl From<u8> for KeyAttibuteValue
impl From<u8> for KeyAttibuteValue
§fn from(value: u8) -> KeyAttibuteValue
fn from(value: u8) -> KeyAttibuteValue
Converts to this type from the input type.
§impl From<usize> for KeyAttibuteValue
impl From<usize> for KeyAttibuteValue
§fn from(value: usize) -> KeyAttibuteValue
fn from(value: usize) -> KeyAttibuteValue
Converts to this type from the input type.
§impl PartialEq<KeyAttibuteValue> for KeyAttibuteValue
impl PartialEq<KeyAttibuteValue> for KeyAttibuteValue
§fn eq(&self, other: &KeyAttibuteValue) -> bool
fn eq(&self, other: &KeyAttibuteValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for KeyAttibuteValue
impl Serialize for KeyAttibuteValue
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for KeyAttibuteValue
impl StructuralEq for KeyAttibuteValue
impl StructuralPartialEq for KeyAttibuteValue
Auto Trait Implementations§
impl RefUnwindSafe for KeyAttibuteValue
impl Send for KeyAttibuteValue
impl Sync for KeyAttibuteValue
impl Unpin for KeyAttibuteValue
impl UnwindSafe for KeyAttibuteValue
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.