store_api::storage

Enum ConcreteDataType

pub enum ConcreteDataType {
Show 25 variants Null(NullType), Boolean(BooleanType), Int8(Int8Type), Int16(Int16Type), Int32(Int32Type), Int64(Int64Type), UInt8(UInt8Type), UInt16(UInt16Type), UInt32(UInt32Type), UInt64(UInt64Type), Float32(Float32Type), Float64(Float64Type), Decimal128(Decimal128Type), Binary(BinaryType), String(StringType), Date(DateType), DateTime(DateTimeType), Timestamp(TimestampType), Time(TimeType), Duration(DurationType), Interval(IntervalType), List(ListType), Dictionary(DictionaryType), Json(JsonType), Vector(VectorType),
}

Variants§

§

Null(NullType)

§

Boolean(BooleanType)

§

Int8(Int8Type)

§

Int16(Int16Type)

§

Int32(Int32Type)

§

Int64(Int64Type)

§

UInt8(UInt8Type)

§

UInt16(UInt16Type)

§

UInt32(UInt32Type)

§

UInt64(UInt64Type)

§

Float32(Float32Type)

§

Float64(Float64Type)

§

Decimal128(Decimal128Type)

§

Binary(BinaryType)

§

String(StringType)

§

Date(DateType)

§

DateTime(DateTimeType)

§

Timestamp(TimestampType)

§

Time(TimeType)

§

Duration(DurationType)

§

Interval(IntervalType)

§

List(ListType)

§

Dictionary(DictionaryType)

§

Json(JsonType)

§

Vector(VectorType)

Implementations§

§

impl ConcreteDataType

pub fn is_float(&self) -> bool

pub fn is_boolean(&self) -> bool

pub fn is_string(&self) -> bool

pub fn is_stringifiable(&self) -> bool

pub fn is_signed(&self) -> bool

pub fn is_unsigned(&self) -> bool

pub fn is_numeric(&self) -> bool

pub fn is_timestamp(&self) -> bool

pub fn is_decimal(&self) -> bool

pub fn is_json(&self) -> bool

pub fn is_vector(&self) -> bool

pub fn numerics() -> Vec<ConcreteDataType>

pub fn unsigned_integers() -> Vec<ConcreteDataType>

pub fn timestamps() -> Vec<ConcreteDataType>

pub fn from_arrow_type(dt: &DataType) -> ConcreteDataType

Convert arrow data type to ConcreteDataType.

§Panics

Panic if given arrow data type is not supported.

pub fn is_null(&self) -> bool

pub fn as_list(&self) -> Option<&ListType>

Try to cast the type as a [ListType].

pub fn as_timestamp(&self) -> Option<TimestampType>

Try to cast data type as a [TimestampType].

pub fn numeric_precision(&self) -> Option<u8>

Try to get numeric precision, returns None if it’s not numeric type

pub fn numeric_scale(&self) -> Option<i8>

Try to get numeric scale, returns None if it’s float or not numeric type

pub fn as_time(&self) -> Option<TimeType>

Try to cast data type as a [TimeType].

pub fn as_decimal128(&self) -> Option<Decimal128Type>

pub fn as_json(&self) -> Option<JsonType>

pub fn as_vector(&self) -> Option<VectorType>

pub fn can_arrow_type_cast_to(&self, to_type: &ConcreteDataType) -> bool

Checks if the data type can cast to another data type.

pub fn as_duration(&self) -> Option<DurationType>

Try to cast data type as a [DurationType].

§

impl ConcreteDataType

§

impl ConcreteDataType

pub fn timestamp_second_datatype() -> ConcreteDataType

pub fn timestamp_millisecond_datatype() -> ConcreteDataType

pub fn timestamp_microsecond_datatype() -> ConcreteDataType

pub fn timestamp_nanosecond_datatype() -> ConcreteDataType

pub fn time_datatype(unit: TimeUnit) -> ConcreteDataType

Returns the time data type with TimeUnit.

pub fn time_second_datatype() -> ConcreteDataType

Creates a [Time(TimeSecondType)] datatype.

pub fn time_millisecond_datatype() -> ConcreteDataType

Creates a [Time(TimeMillisecondType)] datatype.

pub fn time_microsecond_datatype() -> ConcreteDataType

Creates a [Time(TimeMicrosecond)] datatype.

pub fn time_nanosecond_datatype() -> ConcreteDataType

Creates a [Time(TimeNanosecond)] datatype.

pub fn duration_second_datatype() -> ConcreteDataType

Creates a [Duration(DurationSecondType)] datatype.

pub fn duration_millisecond_datatype() -> ConcreteDataType

Creates a [Duration(DurationMillisecondType)] datatype.

pub fn duration_microsecond_datatype() -> ConcreteDataType

Creates a [Duration(DurationMicrosecondType)] datatype.

pub fn duration_nanosecond_datatype() -> ConcreteDataType

Creates a [Duration(DurationNanosecondType)] datatype.

pub fn interval_month_day_nano_datatype() -> ConcreteDataType

Creates a [Interval(IntervalMonthDayNanoType)] datatype.

pub fn interval_year_month_datatype() -> ConcreteDataType

Creates a [Interval(IntervalYearMonthType)] datatype.

pub fn interval_day_time_datatype() -> ConcreteDataType

Creates a [Interval(IntervalDayTimeType)] datatype.

pub fn timestamp_datatype(unit: TimeUnit) -> ConcreteDataType

pub fn from_arrow_time_unit(t: &TimeUnit) -> ConcreteDataType

Converts from arrow timestamp unit to

pub fn duration_datatype(unit: TimeUnit) -> ConcreteDataType

pub fn interval_datatype(unit: IntervalUnit) -> ConcreteDataType

pub fn from_arrow_interval_unit(u: &IntervalUnit) -> ConcreteDataType

pub fn list_datatype(item_type: ConcreteDataType) -> ConcreteDataType

pub fn dictionary_datatype( key_type: ConcreteDataType, value_type: ConcreteDataType, ) -> ConcreteDataType

pub fn decimal128_datatype(precision: u8, scale: i8) -> ConcreteDataType

pub fn decimal128_default_datatype() -> ConcreteDataType

pub fn vector_datatype(dim: u32) -> ConcreteDataType

pub fn vector_default_datatype() -> ConcreteDataType

Trait Implementations§

§

impl Clone for ConcreteDataType

§

fn clone(&self) -> ConcreteDataType

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
§

impl DataType for ConcreteDataType

§

fn name(&self) -> String

Name of this data type.

§

fn logical_type_id(&self) -> LogicalTypeId

Returns id of the Logical data type.

§

fn default_value(&self) -> Value

Returns the default value of this type.

§

fn as_arrow_type(&self) -> DataType

Convert this type as [arrow::datatypes::DataType].

§

fn create_mutable_vector( &self, __enum_dispatch_arg_0: usize, ) -> Box<dyn MutableVector>

Creates a mutable vector with given capacity of this type.

§

fn try_cast(&self, __enum_dispatch_arg_0: Value) -> Option<Value>

Casts the value to specific DataType. Return None if cast failed.

§

impl Debug for ConcreteDataType

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for ConcreteDataType

§

fn deserialize<__D>( __deserializer: __D, ) -> Result<ConcreteDataType, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

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

impl Display for ConcreteDataType

§

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

Formats the value using the given formatter. Read more
§

impl From<&ConcreteDataType> for ConcreteDataType

§

fn from(t: &ConcreteDataType) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<BinaryType> for ConcreteDataType

§

fn from(v: BinaryType) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<BooleanType> for ConcreteDataType

§

fn from(v: BooleanType) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<ColumnDataTypeWrapper> for ConcreteDataType

§

fn from(datatype_wrapper: ColumnDataTypeWrapper) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<DateTimeType> for ConcreteDataType

§

fn from(v: DateTimeType) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<DateType> for ConcreteDataType

§

fn from(v: DateType) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<Decimal128Type> for ConcreteDataType

§

fn from(v: Decimal128Type) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<DictionaryType> for ConcreteDataType

§

fn from(v: DictionaryType) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<DurationType> for ConcreteDataType

§

fn from(v: DurationType) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<Float32Type> for ConcreteDataType

§

fn from(v: Float32Type) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<Float64Type> for ConcreteDataType

§

fn from(v: Float64Type) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<Int16Type> for ConcreteDataType

§

fn from(v: Int16Type) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<Int32Type> for ConcreteDataType

§

fn from(v: Int32Type) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<Int64Type> for ConcreteDataType

§

fn from(v: Int64Type) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<Int8Type> for ConcreteDataType

§

fn from(v: Int8Type) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<IntervalType> for ConcreteDataType

§

fn from(v: IntervalType) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<JsonType> for ConcreteDataType

§

fn from(v: JsonType) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<ListType> for ConcreteDataType

§

fn from(v: ListType) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<NullType> for ConcreteDataType

§

fn from(v: NullType) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<StringType> for ConcreteDataType

§

fn from(v: StringType) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<TimeType> for ConcreteDataType

§

fn from(v: TimeType) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<TimestampType> for ConcreteDataType

§

fn from(v: TimestampType) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<UInt16Type> for ConcreteDataType

§

fn from(v: UInt16Type) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<UInt32Type> for ConcreteDataType

§

fn from(v: UInt32Type) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<UInt64Type> for ConcreteDataType

§

fn from(v: UInt64Type) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<UInt8Type> for ConcreteDataType

§

fn from(v: UInt8Type) -> ConcreteDataType

Converts to this type from the input type.
§

impl From<VectorType> for ConcreteDataType

§

fn from(v: VectorType) -> ConcreteDataType

Converts to this type from the input type.
§

impl Hash for ConcreteDataType

§

fn hash<__H>(&self, state: &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
§

impl Ord for ConcreteDataType

§

fn cmp(&self, other: &ConcreteDataType) -> Ordering

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

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

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

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

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

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
§

impl PartialEq for ConcreteDataType

§

fn eq(&self, other: &ConcreteDataType) -> bool

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

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

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

impl PartialOrd for ConcreteDataType

§

fn partial_cmp(&self, other: &ConcreteDataType) -> 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

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

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

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

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

impl Serialize for ConcreteDataType

§

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 TryFrom<&DataType> for ConcreteDataType

§

type Error = Error

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

fn try_from(dt: &DataType) -> Result<ConcreteDataType, Error>

Performs the conversion.
§

impl TryInto<BinaryType> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<BinaryType, <ConcreteDataType as TryInto<BinaryType>>::Error>

Performs the conversion.
§

impl TryInto<BooleanType> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<BooleanType, <ConcreteDataType as TryInto<BooleanType>>::Error>

Performs the conversion.
§

impl TryInto<DateTimeType> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<DateTimeType, <ConcreteDataType as TryInto<DateTimeType>>::Error>

Performs the conversion.
§

impl TryInto<DateType> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<DateType, <ConcreteDataType as TryInto<DateType>>::Error>

Performs the conversion.
§

impl TryInto<Decimal128Type> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<Decimal128Type, <ConcreteDataType as TryInto<Decimal128Type>>::Error>

Performs the conversion.
§

impl TryInto<DictionaryType> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<DictionaryType, <ConcreteDataType as TryInto<DictionaryType>>::Error>

Performs the conversion.
§

impl TryInto<DurationType> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<DurationType, <ConcreteDataType as TryInto<DurationType>>::Error>

Performs the conversion.
§

impl TryInto<Float32Type> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<Float32Type, <ConcreteDataType as TryInto<Float32Type>>::Error>

Performs the conversion.
§

impl TryInto<Float64Type> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<Float64Type, <ConcreteDataType as TryInto<Float64Type>>::Error>

Performs the conversion.
§

impl TryInto<Int16Type> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<Int16Type, <ConcreteDataType as TryInto<Int16Type>>::Error>

Performs the conversion.
§

impl TryInto<Int32Type> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<Int32Type, <ConcreteDataType as TryInto<Int32Type>>::Error>

Performs the conversion.
§

impl TryInto<Int64Type> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<Int64Type, <ConcreteDataType as TryInto<Int64Type>>::Error>

Performs the conversion.
§

impl TryInto<Int8Type> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<Int8Type, <ConcreteDataType as TryInto<Int8Type>>::Error>

Performs the conversion.
§

impl TryInto<IntervalType> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<IntervalType, <ConcreteDataType as TryInto<IntervalType>>::Error>

Performs the conversion.
§

impl TryInto<JsonType> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<JsonType, <ConcreteDataType as TryInto<JsonType>>::Error>

Performs the conversion.
§

impl TryInto<ListType> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<ListType, <ConcreteDataType as TryInto<ListType>>::Error>

Performs the conversion.
§

impl TryInto<NullType> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<NullType, <ConcreteDataType as TryInto<NullType>>::Error>

Performs the conversion.
§

impl TryInto<StringType> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<StringType, <ConcreteDataType as TryInto<StringType>>::Error>

Performs the conversion.
§

impl TryInto<TimeType> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<TimeType, <ConcreteDataType as TryInto<TimeType>>::Error>

Performs the conversion.
§

impl TryInto<TimestampType> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<TimestampType, <ConcreteDataType as TryInto<TimestampType>>::Error>

Performs the conversion.
§

impl TryInto<UInt16Type> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<UInt16Type, <ConcreteDataType as TryInto<UInt16Type>>::Error>

Performs the conversion.
§

impl TryInto<UInt32Type> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<UInt32Type, <ConcreteDataType as TryInto<UInt32Type>>::Error>

Performs the conversion.
§

impl TryInto<UInt64Type> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<UInt64Type, <ConcreteDataType as TryInto<UInt64Type>>::Error>

Performs the conversion.
§

impl TryInto<UInt8Type> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<UInt8Type, <ConcreteDataType as TryInto<UInt8Type>>::Error>

Performs the conversion.
§

impl TryInto<VectorType> for ConcreteDataType

§

type Error = &'static str

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

fn try_into( self, ) -> Result<VectorType, <ConcreteDataType as TryInto<VectorType>>::Error>

Performs the conversion.
§

impl Eq for ConcreteDataType

§

impl StructuralPartialEq for ConcreteDataType

Auto Trait Implementations§

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
§

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

§

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

source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T, V> Convert<T> for V
where V: Into<T>,

§

fn convert(value: Self) -> T

§

fn convert_box(value: Box<Self>) -> Box<T>

§

fn convert_vec(value: Vec<Self>) -> Vec<T>

§

fn convert_vec_box(value: Vec<Box<Self>>) -> Vec<Box<T>>

§

fn convert_matrix(value: Vec<Vec<Self>>) -> Vec<Vec<T>>

§

fn convert_option(value: Option<Self>) -> Option<T>

§

fn convert_option_box(value: Option<Box<Self>>) -> Option<Box<T>>

§

fn convert_option_vec(value: Option<Vec<Self>>) -> Option<Vec<T>>

§

impl<Q, K> Equivalent<K> for Q
where 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
§

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

§

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

Compare self to key and return true if they are equal.
source§

impl<Q, K> Equivalent<K> for Q
where 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 Q
where 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
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn from_ref(input: &T) -> T

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

impl<T> FutureExt for T

§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
§

impl<T> Instrument for T

§

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

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

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 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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

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

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

impl<T> ToOwned for T
where T: Clone,

source§

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 T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. 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.
§

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

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

§

impl<T> Any for T
where T: Any,

§

impl<T> CloneAny for T
where T: Any + Clone,

§

impl<T> CloneAnySend for T
where T: Any + Send + Clone,

§

impl<T> CloneAnySendSync for T
where T: Any + Send + Sync + Clone,

§

impl<T> CloneAnySync for T
where T: Any + Sync + Clone,

source§

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