Enum eva_common::value::Value

source ·
pub enum Value {
Show 19 variants Bool(bool), U8(u8), U16(u16), U32(u32), U64(u64), I8(i8), I16(i16), I32(i32), I64(i64), F32(f32), F64(f64), Char(char), String(String), Unit, Option(Option<Box<Value>>), Newtype(Box<Value>), Seq(Vec<Value>), Map(BTreeMap<Value, Value>), Bytes(Vec<u8>),
}

Variants§

§

Bool(bool)

§

U8(u8)

§

U16(u16)

§

U32(u32)

§

U64(u64)

§

I8(i8)

§

I16(i16)

§

I32(i32)

§

I64(i64)

§

F32(f32)

§

F64(f64)

§

Char(char)

§

String(String)

§

Unit

§

Option(Option<Box<Value>>)

§

Newtype(Box<Value>)

§

Seq(Vec<Value>)

§

Map(BTreeMap<Value, Value>)

§

Bytes(Vec<u8>)

Implementations§

source§

impl Value

source

pub fn into_seq_flatten(self) -> Value

source

pub fn into_seq_reshaped(self, dimensions: &[usize]) -> Value

source

pub fn get_by_index(&self, idx: &Index) -> Option<&Value>

source

pub fn rounded(self, precision: Option<u32>) -> EResult<Value>

Rounds value to digits after comma, if the value is float

source

pub fn to_no_bytes(self) -> Value

source

pub fn as_timestamp(&self) -> EResult<f64>

Tries to convert Value to f64 timestamp

Valid options are:

number - timestamp as-is time frame as N<S|T|H|D|W>, e.g. 5T for 5 minutes: now - time frame other string - tries to parse the string into date/time

source

pub fn as_future_timestamp(&self) -> EResult<f64>

Same as as_timestamp() but time frames are added to now

source

pub fn to_alphanumeric_string(self) -> EResult<String>

source

pub fn to_string_or_pack(self) -> EResult<String>

source

pub fn unpack(self) -> EResult<Self>

source

pub fn deserialize_into<'de, T: Deserialize<'de>>( self ) -> Result<T, DeserializerError>

source

pub fn is_empty(&self) -> bool

source

pub fn is_numeric(&self) -> bool

source

pub fn is_seq(&self) -> bool

source

pub fn is_map(&self) -> bool

source

pub async fn extend(self, timeout: Duration, base: &Path) -> EResult<Value>

Trait Implementations§

source§

impl Clone for Value

source§

fn clone(&self) -> Value

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Value

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Value

source§

fn default() -> Value

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

impl<'de> Deserialize<'de> for Value

source§

fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de> Deserializer<'de> for Value

§

type Error = DeserializerError

The error type that can be returned if some error occurs during deserialization.
source§

fn deserialize_any<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Require the Deserializer to figure out how to drive the visitor based on what data type is in the input. Read more
source§

fn deserialize_option<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an optional value. Read more
source§

fn deserialize_enum<V: Visitor<'de>>( self, name: &'static str, variants: &'static [&'static str], visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an enum value with a particular name and possible variants.
source§

fn deserialize_newtype_struct<V: Visitor<'de>>( self, name: &'static str, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a newtype struct with a particular name.
source§

fn deserialize_bool<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a bool value.
source§

fn deserialize_u8<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u8 value.
source§

fn deserialize_u16<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u16 value.
source§

fn deserialize_u32<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u32 value.
source§

fn deserialize_u64<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u64 value.
source§

fn deserialize_i8<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i8 value.
source§

fn deserialize_i16<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i16 value.
source§

fn deserialize_i32<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i32 value.
source§

fn deserialize_i64<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i64 value.
source§

fn deserialize_f32<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a f32 value.
source§

fn deserialize_f64<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a f64 value.
source§

fn deserialize_char<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a char value.
source§

fn deserialize_str<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_string<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_unit<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit value.
source§

fn deserialize_seq<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values.
source§

fn deserialize_bytes<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a byte array and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_byte_buf<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a byte array and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_map<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a map of key-value pairs.
source§

fn deserialize_unit_struct<V>( self, name: &'static str, visitor: V ) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit struct with a particular name.
source§

fn deserialize_tuple_struct<V>( self, name: &'static str, len: usize, visitor: V ) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a tuple struct with a particular name and number of fields.
source§

fn deserialize_struct<V>( self, name: &'static str, fields: &'static [&'static str], visitor: V ) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a struct with a particular name and fields.
source§

fn deserialize_tuple<V>( self, len: usize, visitor: V ) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values and knows how many values there are without looking at the serialized data.
source§

fn deserialize_ignored_any<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type needs to deserialize a value whose type doesn’t matter because it is ignored. Read more
source§

fn deserialize_identifier<V>(self, visitor: V) -> Result<V::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting the name of a struct field or the discriminant of an enum variant.
source§

fn deserialize_i128<V>( self, visitor: V ) -> Result<<V as Visitor<'de>>::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i128 value. Read more
source§

fn deserialize_u128<V>( self, visitor: V ) -> Result<<V as Visitor<'de>>::Value, Self::Error>where V: Visitor<'de>,

Hint that the Deserialize type is expecting an u128 value. Read more
source§

fn is_human_readable(&self) -> bool

Determine whether Deserialize implementations should expect to deserialize their human-readable form. Read more
source§

impl Display for Value

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&OID> for Value

source§

fn from(oid: &OID) -> Value

Converts to this type from the input type.
source§

impl From<&String> for Value

source§

fn from(s: &String) -> Value

Converts to this type from the input type.
source§

impl From<&str> for Value

source§

fn from(s: &str) -> Value

Converts to this type from the input type.
source§

impl From<BTreeMap<Value, Value, Global>> for Value

source§

fn from(v: BTreeMap<Value, Value>) -> Value

Converts to this type from the input type.
source§

impl From<Duration> for Value

source§

fn from(v: Duration) -> Value

Converts to this type from the input type.
source§

impl From<HashSet<IpNetwork, RandomState>> for Value

source§

fn from(v: HashSet<IpNetwork>) -> Value

Converts to this type from the input type.
source§

impl<S: BuildHasher> From<HashSet<OID, S>> for Value

source§

fn from(v: HashSet<OID, S>) -> Value

Converts to this type from the input type.
source§

impl From<HashSet<Value, RandomState>> for Value

source§

fn from(v: HashSet<Value>) -> Value

Converts to this type from the input type.
source§

impl From<ItemKind> for Value

source§

fn from(src: ItemKind) -> Value

Converts to this type from the input type.
source§

impl From<OID> for Value

source§

fn from(oid: OID) -> Value

Converts to this type from the input type.
source§

impl From<OIDMaskList> for Value

source§

fn from(v: OIDMaskList) -> Value

Converts to this type from the input type.
source§

impl From<Option<Duration>> for Value

source§

fn from(v: Option<Duration>) -> Value

Converts to this type from the input type.
source§

impl From<Option<String>> for Value

source§

fn from(v: Option<String>) -> Value

Converts to this type from the input type.
source§

impl From<Option<f64>> for Value

source§

fn from(v: Option<f64>) -> Value

Converts to this type from the input type.
source§

impl From<PathMaskList> for Value

source§

fn from(v: PathMaskList) -> Value

Converts to this type from the input type.
source§

impl From<String> for Value

source§

fn from(src: String) -> Value

Converts to this type from the input type.
source§

impl From<Time> for Value

source§

fn from(t: Time) -> Value

Converts to this type from the input type.
source§

impl From<Vec<String, Global>> for Value

source§

fn from(v: Vec<String>) -> Value

Converts to this type from the input type.
source§

impl From<Vec<Value, Global>> for Value

source§

fn from(v: Vec<Value>) -> Value

Converts to this type from the input type.
source§

impl From<bool> for Value

source§

fn from(src: bool) -> Value

Converts to this type from the input type.
source§

impl From<f32> for Value

source§

fn from(src: f32) -> Value

Converts to this type from the input type.
source§

impl From<f64> for Value

source§

fn from(src: f64) -> Value

Converts to this type from the input type.
source§

impl From<i16> for Value

source§

fn from(src: i16) -> Value

Converts to this type from the input type.
source§

impl From<i32> for Value

source§

fn from(src: i32) -> Value

Converts to this type from the input type.
source§

impl From<i64> for Value

source§

fn from(src: i64) -> Value

Converts to this type from the input type.
source§

impl From<i8> for Value

source§

fn from(src: i8) -> Value

Converts to this type from the input type.
source§

impl From<u16> for Value

source§

fn from(src: u16) -> Value

Converts to this type from the input type.
source§

impl From<u32> for Value

source§

fn from(src: u32) -> Value

Converts to this type from the input type.
source§

impl From<u64> for Value

source§

fn from(src: u64) -> Value

Converts to this type from the input type.
source§

impl From<u8> for Value

source§

fn from(src: u8) -> Value

Converts to this type from the input type.
source§

impl FromStr for Value

§

type Err = Infallible

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Value

source§

fn hash<H>(&self, hasher: &mut H)where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'de> IntoDeserializer<'de, DeserializerError> for Value

§

type Deserializer = Value

The type of the deserializer being converted into.
source§

fn into_deserializer(self) -> Value

Convert this value into a deserializer.
source§

impl Ord for Value

source§

fn cmp(&self, rhs: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Value> for Value

source§

fn eq(&self, rhs: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Value> for Value

source§

fn partial_cmp(&self, rhs: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for Value

source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl<'a> TryFrom<&'a Value> for &'a str

§

type Error = Error

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

fn try_from(v: &'a Value) -> EResult<&'a str>

Performs the conversion.
source§

impl<'a> TryFrom<&'a Value> for Vec<&'a str>

§

type Error = Error

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

fn try_from(value: &'a Value) -> EResult<Vec<&'a str>>

Performs the conversion.
source§

impl TryFrom<&Value> for IEID

§

type Error = Error

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

fn try_from(v: &Value) -> EResult<Self>

Performs the conversion.
source§

impl TryFrom<&Value> for ItemKind

§

type Error = Error

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

fn try_from(value: &Value) -> Result<ItemKind, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Value> for OID

§

type Error = Error

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

fn try_from(value: &Value) -> Result<OID, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Value> for String

§

type Error = Error

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

fn try_from(v: &Value) -> EResult<String>

Performs the conversion.
source§

impl TryFrom<&Value> for Vec<ItemKind>

§

type Error = Error

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

fn try_from(value: &Value) -> Result<Vec<ItemKind>, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Value> for Vec<String>

§

type Error = Error

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

fn try_from(value: &Value) -> EResult<Vec<String>>

Performs the conversion.
source§

impl TryFrom<&Value> for f64

§

type Error = Error

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

fn try_from(value: &Value) -> EResult<f64>

Performs the conversion.
source§

impl TryFrom<&Value> for i64

§

type Error = Error

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

fn try_from(value: &Value) -> EResult<i64>

Performs the conversion.
source§

impl TryFrom<&Value> for u64

§

type Error = Error

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

fn try_from(value: &Value) -> EResult<u64>

Performs the conversion.
source§

impl TryFrom<Value> for Duration

§

type Error = Error

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

fn try_from(v: Value) -> EResult<Duration>

Performs the conversion.
source§

impl<S: BuildHasher + Default> TryFrom<Value> for HashSet<IpNetwork, S>

§

type Error = Error

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

fn try_from(value: Value) -> EResult<HashSet<IpNetwork, S>>

Performs the conversion.
source§

impl<S: BuildHasher + Default> TryFrom<Value> for HashSet<OID, S>

§

type Error = Error

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

fn try_from(value: Value) -> EResult<HashSet<OID, S>>

Performs the conversion.
source§

impl<S: BuildHasher + Default> TryFrom<Value> for HashSet<Value, S>

§

type Error = Error

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

fn try_from(value: Value) -> EResult<HashSet<Value, S>>

Performs the conversion.
source§

impl TryFrom<Value> for ItemKind

§

type Error = Error

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

fn try_from(value: Value) -> Result<ItemKind, Self::Error>

Performs the conversion.
source§

impl TryFrom<Value> for OID

§

type Error = Error

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

fn try_from(value: Value) -> EResult<OID>

Performs the conversion.
source§

impl TryFrom<Value> for OIDMaskList

§

type Error = Error

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

fn try_from(value: Value) -> EResult<OIDMaskList>

Performs the conversion.
source§

impl TryFrom<Value> for Option<Duration>

§

type Error = Error

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

fn try_from(v: Value) -> EResult<Option<Duration>>

Performs the conversion.
source§

impl TryFrom<Value> for Option<String>

§

type Error = Error

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

fn try_from(v: Value) -> EResult<Option<String>>

Performs the conversion.
source§

impl TryFrom<Value> for PathMaskList

§

type Error = Error

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

fn try_from(value: Value) -> EResult<PathMaskList>

Performs the conversion.
source§

impl TryFrom<Value> for String

§

type Error = Error

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

fn try_from(v: Value) -> EResult<String>

Performs the conversion.
source§

impl TryFrom<Value> for Value

§

type Error = Error

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

fn try_from(v: Value) -> EResult<Self>

Performs the conversion.
source§

impl TryFrom<Value> for Value

§

type Error = Error

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

fn try_from(v: Value) -> EResult<Self>

Performs the conversion.
source§

impl TryFrom<Value> for Vec<ItemKind>

§

type Error = Error

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

fn try_from(value: Value) -> Result<Vec<ItemKind>, Self::Error>

Performs the conversion.
source§

impl TryFrom<Value> for Vec<String>

§

type Error = Error

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

fn try_from(value: Value) -> EResult<Vec<String>>

Performs the conversion.
source§

impl TryFrom<Value> for Vec<Value>

§

type Error = Error

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

fn try_from(value: Value) -> EResult<Vec<Value>>

Performs the conversion.
source§

impl TryFrom<Value> for bool

§

type Error = Error

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

fn try_from(value: Value) -> EResult<bool>

Performs the conversion.
source§

impl TryFrom<Value> for f32

§

type Error = Error

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

fn try_from(value: Value) -> EResult<f32>

Performs the conversion.
source§

impl TryFrom<Value> for f64

§

type Error = Error

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

fn try_from(value: Value) -> EResult<f64>

Performs the conversion.
source§

impl TryFrom<Value> for i16

§

type Error = Error

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

fn try_from(value: Value) -> EResult<i16>

Performs the conversion.
source§

impl TryFrom<Value> for i32

§

type Error = Error

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

fn try_from(value: Value) -> EResult<i32>

Performs the conversion.
source§

impl TryFrom<Value> for i64

§

type Error = Error

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

fn try_from(value: Value) -> EResult<i64>

Performs the conversion.
source§

impl TryFrom<Value> for i8

§

type Error = Error

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

fn try_from(value: Value) -> EResult<i8>

Performs the conversion.
source§

impl TryFrom<Value> for u16

§

type Error = Error

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

fn try_from(value: Value) -> EResult<u16>

Performs the conversion.
source§

impl TryFrom<Value> for u32

§

type Error = Error

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

fn try_from(value: Value) -> EResult<u32>

Performs the conversion.
source§

impl TryFrom<Value> for u64

§

type Error = Error

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

fn try_from(value: Value) -> EResult<u64>

Performs the conversion.
source§

impl TryFrom<Value> for u8

§

type Error = Error

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

fn try_from(value: Value) -> EResult<u8>

Performs the conversion.
source§

impl Eq for Value

Auto Trait Implementations§

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere T: Hash + ?Sized,

§

default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64where H: Hash + ?Sized, B: BuildHasher,

source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

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,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for Twhere T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere 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.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

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

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,