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
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
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_timestamp(&self) -> Option<TimestampType>
pub fn as_timestamp(&self) -> Option<TimestampType>
Try to cast data type as a [TimestampType
].
pub fn numeric_precision(&self) -> Option<u8>
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>
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_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
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>
pub fn as_duration(&self) -> Option<DurationType>
Try to cast data type as a [DurationType
].
§impl ConcreteDataType
impl ConcreteDataType
pub fn null_datatype() -> ConcreteDataType
pub fn boolean_datatype() -> ConcreteDataType
pub fn uint8_datatype() -> ConcreteDataType
pub fn uint16_datatype() -> ConcreteDataType
pub fn uint32_datatype() -> ConcreteDataType
pub fn uint64_datatype() -> ConcreteDataType
pub fn int8_datatype() -> ConcreteDataType
pub fn int16_datatype() -> ConcreteDataType
pub fn int32_datatype() -> ConcreteDataType
pub fn int64_datatype() -> ConcreteDataType
pub fn float32_datatype() -> ConcreteDataType
pub fn float64_datatype() -> ConcreteDataType
pub fn binary_datatype() -> ConcreteDataType
pub fn date_datatype() -> ConcreteDataType
pub fn datetime_datatype() -> ConcreteDataType
pub fn string_datatype() -> ConcreteDataType
pub fn json_datatype() -> ConcreteDataType
§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
pub fn time_datatype(unit: TimeUnit) -> ConcreteDataType
Returns the time data type with TimeUnit
.
pub fn time_second_datatype() -> ConcreteDataType
pub fn time_second_datatype() -> ConcreteDataType
Creates a [Time(TimeSecondType)] datatype.
pub fn time_millisecond_datatype() -> ConcreteDataType
pub fn time_millisecond_datatype() -> ConcreteDataType
Creates a [Time(TimeMillisecondType)] datatype.
pub fn time_microsecond_datatype() -> ConcreteDataType
pub fn time_microsecond_datatype() -> ConcreteDataType
Creates a [Time(TimeMicrosecond)] datatype.
pub fn time_nanosecond_datatype() -> ConcreteDataType
pub fn time_nanosecond_datatype() -> ConcreteDataType
Creates a [Time(TimeNanosecond)] datatype.
pub fn duration_second_datatype() -> ConcreteDataType
pub fn duration_second_datatype() -> ConcreteDataType
Creates a [Duration(DurationSecondType)] datatype.
pub fn duration_millisecond_datatype() -> ConcreteDataType
pub fn duration_millisecond_datatype() -> ConcreteDataType
Creates a [Duration(DurationMillisecondType)] datatype.
pub fn duration_microsecond_datatype() -> ConcreteDataType
pub fn duration_microsecond_datatype() -> ConcreteDataType
Creates a [Duration(DurationMicrosecondType)] datatype.
pub fn duration_nanosecond_datatype() -> ConcreteDataType
pub fn duration_nanosecond_datatype() -> ConcreteDataType
Creates a [Duration(DurationNanosecondType)] datatype.
pub fn interval_month_day_nano_datatype() -> ConcreteDataType
pub fn interval_month_day_nano_datatype() -> ConcreteDataType
Creates a [Interval(IntervalMonthDayNanoType)] datatype.
pub fn interval_year_month_datatype() -> ConcreteDataType
pub fn interval_year_month_datatype() -> ConcreteDataType
Creates a [Interval(IntervalYearMonthType)] datatype.
pub fn interval_day_time_datatype() -> ConcreteDataType
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
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
impl Clone for ConcreteDataType
§fn clone(&self) -> ConcreteDataType
fn clone(&self) -> ConcreteDataType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl DataType for ConcreteDataType
impl DataType for ConcreteDataType
§fn logical_type_id(&self) -> LogicalTypeId
fn logical_type_id(&self) -> LogicalTypeId
Returns id of the Logical data type.
§fn default_value(&self) -> Value
fn default_value(&self) -> Value
Returns the default value of this type.
§fn as_arrow_type(&self) -> DataType
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>
fn create_mutable_vector( &self, __enum_dispatch_arg_0: usize, ) -> Box<dyn MutableVector>
Creates a mutable vector with given capacity
of this type.
§impl Debug for ConcreteDataType
impl Debug for ConcreteDataType
§impl<'de> Deserialize<'de> for ConcreteDataType
impl<'de> Deserialize<'de> for ConcreteDataType
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConcreteDataType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConcreteDataType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Display for ConcreteDataType
impl Display for ConcreteDataType
§impl From<&ConcreteDataType> for ConcreteDataType
impl From<&ConcreteDataType> for ConcreteDataType
§fn from(t: &ConcreteDataType) -> ConcreteDataType
fn from(t: &ConcreteDataType) -> ConcreteDataType
§impl From<BinaryType> for ConcreteDataType
impl From<BinaryType> for ConcreteDataType
§fn from(v: BinaryType) -> ConcreteDataType
fn from(v: BinaryType) -> ConcreteDataType
§impl From<BooleanType> for ConcreteDataType
impl From<BooleanType> for ConcreteDataType
§fn from(v: BooleanType) -> ConcreteDataType
fn from(v: BooleanType) -> ConcreteDataType
§impl From<ColumnDataTypeWrapper> for ConcreteDataType
impl From<ColumnDataTypeWrapper> for ConcreteDataType
§fn from(datatype_wrapper: ColumnDataTypeWrapper) -> ConcreteDataType
fn from(datatype_wrapper: ColumnDataTypeWrapper) -> ConcreteDataType
§impl From<DateTimeType> for ConcreteDataType
impl From<DateTimeType> for ConcreteDataType
§fn from(v: DateTimeType) -> ConcreteDataType
fn from(v: DateTimeType) -> ConcreteDataType
§impl From<DateType> for ConcreteDataType
impl From<DateType> for ConcreteDataType
§fn from(v: DateType) -> ConcreteDataType
fn from(v: DateType) -> ConcreteDataType
§impl From<Decimal128Type> for ConcreteDataType
impl From<Decimal128Type> for ConcreteDataType
§fn from(v: Decimal128Type) -> ConcreteDataType
fn from(v: Decimal128Type) -> ConcreteDataType
§impl From<DictionaryType> for ConcreteDataType
impl From<DictionaryType> for ConcreteDataType
§fn from(v: DictionaryType) -> ConcreteDataType
fn from(v: DictionaryType) -> ConcreteDataType
§impl From<DurationType> for ConcreteDataType
impl From<DurationType> for ConcreteDataType
§fn from(v: DurationType) -> ConcreteDataType
fn from(v: DurationType) -> ConcreteDataType
§impl From<Float32Type> for ConcreteDataType
impl From<Float32Type> for ConcreteDataType
§fn from(v: Float32Type) -> ConcreteDataType
fn from(v: Float32Type) -> ConcreteDataType
§impl From<Float64Type> for ConcreteDataType
impl From<Float64Type> for ConcreteDataType
§fn from(v: Float64Type) -> ConcreteDataType
fn from(v: Float64Type) -> ConcreteDataType
§impl From<Int16Type> for ConcreteDataType
impl From<Int16Type> for ConcreteDataType
§fn from(v: Int16Type) -> ConcreteDataType
fn from(v: Int16Type) -> ConcreteDataType
§impl From<Int32Type> for ConcreteDataType
impl From<Int32Type> for ConcreteDataType
§fn from(v: Int32Type) -> ConcreteDataType
fn from(v: Int32Type) -> ConcreteDataType
§impl From<Int64Type> for ConcreteDataType
impl From<Int64Type> for ConcreteDataType
§fn from(v: Int64Type) -> ConcreteDataType
fn from(v: Int64Type) -> ConcreteDataType
§impl From<Int8Type> for ConcreteDataType
impl From<Int8Type> for ConcreteDataType
§fn from(v: Int8Type) -> ConcreteDataType
fn from(v: Int8Type) -> ConcreteDataType
§impl From<IntervalType> for ConcreteDataType
impl From<IntervalType> for ConcreteDataType
§fn from(v: IntervalType) -> ConcreteDataType
fn from(v: IntervalType) -> ConcreteDataType
§impl From<JsonType> for ConcreteDataType
impl From<JsonType> for ConcreteDataType
§fn from(v: JsonType) -> ConcreteDataType
fn from(v: JsonType) -> ConcreteDataType
§impl From<ListType> for ConcreteDataType
impl From<ListType> for ConcreteDataType
§fn from(v: ListType) -> ConcreteDataType
fn from(v: ListType) -> ConcreteDataType
§impl From<NullType> for ConcreteDataType
impl From<NullType> for ConcreteDataType
§fn from(v: NullType) -> ConcreteDataType
fn from(v: NullType) -> ConcreteDataType
§impl From<StringType> for ConcreteDataType
impl From<StringType> for ConcreteDataType
§fn from(v: StringType) -> ConcreteDataType
fn from(v: StringType) -> ConcreteDataType
§impl From<TimeType> for ConcreteDataType
impl From<TimeType> for ConcreteDataType
§fn from(v: TimeType) -> ConcreteDataType
fn from(v: TimeType) -> ConcreteDataType
§impl From<TimestampType> for ConcreteDataType
impl From<TimestampType> for ConcreteDataType
§fn from(v: TimestampType) -> ConcreteDataType
fn from(v: TimestampType) -> ConcreteDataType
§impl From<UInt16Type> for ConcreteDataType
impl From<UInt16Type> for ConcreteDataType
§fn from(v: UInt16Type) -> ConcreteDataType
fn from(v: UInt16Type) -> ConcreteDataType
§impl From<UInt32Type> for ConcreteDataType
impl From<UInt32Type> for ConcreteDataType
§fn from(v: UInt32Type) -> ConcreteDataType
fn from(v: UInt32Type) -> ConcreteDataType
§impl From<UInt64Type> for ConcreteDataType
impl From<UInt64Type> for ConcreteDataType
§fn from(v: UInt64Type) -> ConcreteDataType
fn from(v: UInt64Type) -> ConcreteDataType
§impl From<UInt8Type> for ConcreteDataType
impl From<UInt8Type> for ConcreteDataType
§fn from(v: UInt8Type) -> ConcreteDataType
fn from(v: UInt8Type) -> ConcreteDataType
§impl From<VectorType> for ConcreteDataType
impl From<VectorType> for ConcreteDataType
§fn from(v: VectorType) -> ConcreteDataType
fn from(v: VectorType) -> ConcreteDataType
§impl Hash for ConcreteDataType
impl Hash for ConcreteDataType
§impl Ord for ConcreteDataType
impl Ord for ConcreteDataType
§fn cmp(&self, other: &ConcreteDataType) -> Ordering
fn cmp(&self, other: &ConcreteDataType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
§impl PartialEq for ConcreteDataType
impl PartialEq for ConcreteDataType
§impl PartialOrd for ConcreteDataType
impl PartialOrd for ConcreteDataType
§impl Serialize for ConcreteDataType
impl Serialize for ConcreteDataType
§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,
§impl TryFrom<&DataType> for ConcreteDataType
impl TryFrom<&DataType> for ConcreteDataType
§impl TryInto<BinaryType> for ConcreteDataType
impl TryInto<BinaryType> for ConcreteDataType
§impl TryInto<BooleanType> for ConcreteDataType
impl TryInto<BooleanType> for ConcreteDataType
§impl TryInto<DateTimeType> for ConcreteDataType
impl TryInto<DateTimeType> for ConcreteDataType
§impl TryInto<DateType> for ConcreteDataType
impl TryInto<DateType> for ConcreteDataType
§impl TryInto<Decimal128Type> for ConcreteDataType
impl TryInto<Decimal128Type> for ConcreteDataType
§impl TryInto<DictionaryType> for ConcreteDataType
impl TryInto<DictionaryType> for ConcreteDataType
§impl TryInto<DurationType> for ConcreteDataType
impl TryInto<DurationType> for ConcreteDataType
§impl TryInto<Float32Type> for ConcreteDataType
impl TryInto<Float32Type> for ConcreteDataType
§impl TryInto<Float64Type> for ConcreteDataType
impl TryInto<Float64Type> for ConcreteDataType
§impl TryInto<Int16Type> for ConcreteDataType
impl TryInto<Int16Type> for ConcreteDataType
§impl TryInto<Int32Type> for ConcreteDataType
impl TryInto<Int32Type> for ConcreteDataType
§impl TryInto<Int64Type> for ConcreteDataType
impl TryInto<Int64Type> for ConcreteDataType
§impl TryInto<Int8Type> for ConcreteDataType
impl TryInto<Int8Type> for ConcreteDataType
§impl TryInto<IntervalType> for ConcreteDataType
impl TryInto<IntervalType> for ConcreteDataType
§impl TryInto<JsonType> for ConcreteDataType
impl TryInto<JsonType> for ConcreteDataType
§impl TryInto<ListType> for ConcreteDataType
impl TryInto<ListType> for ConcreteDataType
§impl TryInto<NullType> for ConcreteDataType
impl TryInto<NullType> for ConcreteDataType
§impl TryInto<StringType> for ConcreteDataType
impl TryInto<StringType> for ConcreteDataType
§impl TryInto<TimeType> for ConcreteDataType
impl TryInto<TimeType> for ConcreteDataType
§impl TryInto<TimestampType> for ConcreteDataType
impl TryInto<TimestampType> for ConcreteDataType
§impl TryInto<UInt16Type> for ConcreteDataType
impl TryInto<UInt16Type> for ConcreteDataType
§impl TryInto<UInt32Type> for ConcreteDataType
impl TryInto<UInt32Type> for ConcreteDataType
§impl TryInto<UInt64Type> for ConcreteDataType
impl TryInto<UInt64Type> for ConcreteDataType
§impl TryInto<UInt8Type> for ConcreteDataType
impl TryInto<UInt8Type> for ConcreteDataType
§impl TryInto<VectorType> for ConcreteDataType
impl TryInto<VectorType> for ConcreteDataType
impl Eq for ConcreteDataType
impl StructuralPartialEq for ConcreteDataType
Auto Trait Implementations§
impl Freeze for ConcreteDataType
impl RefUnwindSafe for ConcreteDataType
impl Send for ConcreteDataType
impl Sync for ConcreteDataType
impl Unpin for ConcreteDataType
impl UnwindSafe for ConcreteDataType
Blanket Implementations§
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
§impl<T> CallHasher for T
impl<T> CallHasher for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Conv for T
impl<T> Conv for T
§impl<T, V> Convert<T> for Vwhere
V: Into<T>,
impl<T, V> Convert<T> for Vwhere
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
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
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) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
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
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
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
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
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
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.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
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.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
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.