pub enum ScalarRefImpl<'scalar> {
Show 20 variants
Int16(i16),
Int32(i32),
Int64(i64),
Int256(Int256Ref<'scalar>),
Float32(F32),
Float64(F64),
Utf8(&'scalar str),
Bool(bool),
Decimal(Decimal),
Interval(Interval),
Date(Date),
Time(Time),
Timestamp(Timestamp),
Timestamptz(Timestamptz),
Jsonb(JsonbRef<'scalar>),
Serial(Serial),
Struct(StructRef<'scalar>),
List(ListRef<'scalar>),
Map(MapRef<'scalar>),
Bytea(&'scalar [u8]),
}
Expand description
ScalarRefImpl
embeds all possible scalar references in the evaluation
framework.
Note: ScalarRefImpl
doesn’t contain all information of its DataType
,
so sometimes they need to be used together.
e.g., for Struct
, we don’t have the field names in the value.
See for_all_variants
for the definition.
Variants§
Int16(i16)
Int32(i32)
Int64(i64)
Int256(Int256Ref<'scalar>)
Float32(F32)
Float64(F64)
Utf8(&'scalar str)
Bool(bool)
Decimal(Decimal)
Interval(Interval)
Date(Date)
Time(Time)
Timestamp(Timestamp)
Timestamptz(Timestamptz)
Jsonb(JsonbRef<'scalar>)
Serial(Serial)
Struct(StructRef<'scalar>)
List(ListRef<'scalar>)
Map(MapRef<'scalar>)
Bytea(&'scalar [u8])
Implementations§
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Sourcepub fn into_int16(self) -> i16
pub fn into_int16(self) -> i16
§Panics
If the scalar is not of the expected type.
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Sourcepub fn into_int32(self) -> i32
pub fn into_int32(self) -> i32
§Panics
If the scalar is not of the expected type.
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Sourcepub fn into_int64(self) -> i64
pub fn into_int64(self) -> i64
§Panics
If the scalar is not of the expected type.
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Sourcepub fn into_int256(self) -> Int256Ref<'scalar>
pub fn into_int256(self) -> Int256Ref<'scalar>
§Panics
If the scalar is not of the expected type.
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Sourcepub fn into_float32(self) -> F32
pub fn into_float32(self) -> F32
§Panics
If the scalar is not of the expected type.
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Sourcepub fn into_float64(self) -> F64
pub fn into_float64(self) -> F64
§Panics
If the scalar is not of the expected type.
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Sourcepub fn into_decimal(self) -> Decimal
pub fn into_decimal(self) -> Decimal
§Panics
If the scalar is not of the expected type.
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Sourcepub fn into_interval(self) -> Interval
pub fn into_interval(self) -> Interval
§Panics
If the scalar is not of the expected type.
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Sourcepub fn into_timestamp(self) -> Timestamp
pub fn into_timestamp(self) -> Timestamp
§Panics
If the scalar is not of the expected type.
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Sourcepub fn into_timestamptz(self) -> Timestamptz
pub fn into_timestamptz(self) -> Timestamptz
§Panics
If the scalar is not of the expected type.
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Sourcepub fn into_jsonb(self) -> JsonbRef<'scalar>
pub fn into_jsonb(self) -> JsonbRef<'scalar>
§Panics
If the scalar is not of the expected type.
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Sourcepub fn into_serial(self) -> Serial
pub fn into_serial(self) -> Serial
§Panics
If the scalar is not of the expected type.
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Sourcepub fn into_struct(self) -> StructRef<'scalar>
pub fn into_struct(self) -> StructRef<'scalar>
§Panics
If the scalar is not of the expected type.
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Source§impl<'scalar> ScalarRefImpl<'scalar>
impl<'scalar> ScalarRefImpl<'scalar>
Sourcepub fn into_bytea(self) -> &'scalar [u8] ⓘ
pub fn into_bytea(self) -> &'scalar [u8] ⓘ
§Panics
If the scalar is not of the expected type.
Source§impl ScalarRefImpl<'_>
impl ScalarRefImpl<'_>
Sourcepub fn into_scalar_impl(self) -> ScalarImpl
pub fn into_scalar_impl(self) -> ScalarImpl
Converts ScalarRefImpl
to ScalarImpl
Source§impl ScalarRefImpl<'_>
impl ScalarRefImpl<'_>
pub fn binary_format( &self, data_type: &DataType, ) -> Result<Bytes, ToBinaryError>
pub fn text_format(&self, data_type: &DataType) -> String
Trait Implementations§
Source§impl<'scalar> Clone for ScalarRefImpl<'scalar>
impl<'scalar> Clone for ScalarRefImpl<'scalar>
Source§fn clone(&self) -> ScalarRefImpl<'scalar>
fn clone(&self) -> ScalarRefImpl<'scalar>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'scalar> Debug for ScalarRefImpl<'scalar>
impl<'scalar> Debug for ScalarRefImpl<'scalar>
Source§impl DefaultOrd for ScalarRefImpl<'_>
impl DefaultOrd for ScalarRefImpl<'_>
fn default_cmp(&self, other: &Self) -> Ordering
Source§impl DefaultPartialOrd for ScalarRefImpl<'_>
impl DefaultPartialOrd for ScalarRefImpl<'_>
fn default_partial_cmp(&self, other: &Self) -> Option<Ordering>
Source§impl<'scalar> From<&'scalar [u8]> for ScalarRefImpl<'scalar>
impl<'scalar> From<&'scalar [u8]> for ScalarRefImpl<'scalar>
Source§impl<'a> From<&'a ScalarImpl> for ScalarRefImpl<'a>
impl<'a> From<&'a ScalarImpl> for ScalarRefImpl<'a>
Source§fn from(scalar: &'a ScalarImpl) -> Self
fn from(scalar: &'a ScalarImpl) -> Self
Source§impl<'scalar> From<&'scalar str> for ScalarRefImpl<'scalar>
impl<'scalar> From<&'scalar str> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<Date> for ScalarRefImpl<'scalar>
impl<'scalar> From<Date> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<Decimal> for ScalarRefImpl<'scalar>
impl<'scalar> From<Decimal> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<Int256Ref<'scalar>> for ScalarRefImpl<'scalar>
impl<'scalar> From<Int256Ref<'scalar>> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<Interval> for ScalarRefImpl<'scalar>
impl<'scalar> From<Interval> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<JsonbRef<'scalar>> for ScalarRefImpl<'scalar>
impl<'scalar> From<JsonbRef<'scalar>> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<ListRef<'scalar>> for ScalarRefImpl<'scalar>
impl<'scalar> From<ListRef<'scalar>> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<MapRef<'scalar>> for ScalarRefImpl<'scalar>
impl<'scalar> From<MapRef<'scalar>> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<OrderedFloat<f32>> for ScalarRefImpl<'scalar>
impl<'scalar> From<OrderedFloat<f32>> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<OrderedFloat<f64>> for ScalarRefImpl<'scalar>
impl<'scalar> From<OrderedFloat<f64>> for ScalarRefImpl<'scalar>
Source§impl From<ScalarRefImpl<'_>> for ScalarImpl
impl From<ScalarRefImpl<'_>> for ScalarImpl
Source§fn from(scalar_ref: ScalarRefImpl<'_>) -> Self
fn from(scalar_ref: ScalarRefImpl<'_>) -> Self
Source§impl<'scalar> From<Serial> for ScalarRefImpl<'scalar>
impl<'scalar> From<Serial> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<StructRef<'scalar>> for ScalarRefImpl<'scalar>
impl<'scalar> From<StructRef<'scalar>> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<Time> for ScalarRefImpl<'scalar>
impl<'scalar> From<Time> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<Timestamp> for ScalarRefImpl<'scalar>
impl<'scalar> From<Timestamp> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<Timestamptz> for ScalarRefImpl<'scalar>
impl<'scalar> From<Timestamptz> for ScalarRefImpl<'scalar>
Source§fn from(val: Timestamptz) -> Self
fn from(val: Timestamptz) -> Self
Source§impl<'scalar> From<bool> for ScalarRefImpl<'scalar>
impl<'scalar> From<bool> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<i16> for ScalarRefImpl<'scalar>
impl<'scalar> From<i16> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<i32> for ScalarRefImpl<'scalar>
impl<'scalar> From<i32> for ScalarRefImpl<'scalar>
Source§impl<'scalar> From<i64> for ScalarRefImpl<'scalar>
impl<'scalar> From<i64> for ScalarRefImpl<'scalar>
Source§impl Hash for ScalarRefImpl<'_>
impl Hash for ScalarRefImpl<'_>
Source§impl<'scalar> PartialEq for ScalarRefImpl<'scalar>
impl<'scalar> PartialEq for ScalarRefImpl<'scalar>
Source§impl SelfAsScalarRef for ScalarRefImpl<'_>
impl SelfAsScalarRef for ScalarRefImpl<'_>
fn as_scalar_ref(&self) -> Self
Source§impl ToBinary for ScalarRefImpl<'_>
impl ToBinary for ScalarRefImpl<'_>
fn to_binary_with_type(&self, ty: &DataType) -> Result<Bytes, ToBinaryError>
Source§impl ToSql for ScalarRefImpl<'_>
impl ToSql for ScalarRefImpl<'_>
Source§fn to_sql_checked(
&self,
ty: &Type,
out: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn to_sql_checked( &self, ty: &Type, out: &mut BytesMut, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
Source§fn to_sql(
&self,
ty: &Type,
out: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn to_sql(
&self,
ty: &Type,
out: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
self
into the binary format of the specified
Postgres Type
, appending it to out
. Read moreSource§fn accepts(_ty: &Type) -> boolwhere
Self: Sized,
fn accepts(_ty: &Type) -> boolwhere
Self: Sized,
Type
.§fn encode_format(&self, _ty: &Type) -> Format
fn encode_format(&self, _ty: &Type) -> Format
Source§impl ToText for ScalarRefImpl<'_>
impl ToText for ScalarRefImpl<'_>
Source§fn write<W: Write>(&self, f: &mut W) -> Result
fn write<W: Write>(&self, f: &mut W) -> Result
Source§fn write_with_type<W: Write>(&self, ty: &DataType, f: &mut W) -> Result
fn write_with_type<W: Write>(&self, ty: &DataType, f: &mut W) -> Result
Source§fn to_text_with_type(&self, ty: &DataType) -> String
fn to_text_with_type(&self, ty: &DataType) -> String
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for &'scalar [u8]
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for &'scalar [u8]
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for &'scalar str
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for &'scalar str
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Date
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Date
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Decimal
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Decimal
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Int256Ref<'scalar>
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Int256Ref<'scalar>
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Interval
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Interval
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for JsonbRef<'scalar>
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for JsonbRef<'scalar>
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for ListRef<'scalar>
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for ListRef<'scalar>
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for MapRef<'scalar>
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for MapRef<'scalar>
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for F32
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for F32
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for F64
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for F64
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Serial
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Serial
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for StructRef<'scalar>
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for StructRef<'scalar>
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Time
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Time
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Timestamp
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Timestamp
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Timestamptz
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Timestamptz
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for bool
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for bool
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for i16
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for i16
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for i32
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for i32
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for i64
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for i64
Source§type Error = ArrayError
type Error = ArrayError
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
impl<'scalar> Copy for ScalarRefImpl<'scalar>
impl<'scalar> Eq for ScalarRefImpl<'scalar>
impl !PartialOrd for ScalarRefImpl<'_>
impl<'scalar> StructuralPartialEq for ScalarRefImpl<'scalar>
Auto Trait Implementations§
impl<'scalar> Freeze for ScalarRefImpl<'scalar>
impl<'scalar> RefUnwindSafe for ScalarRefImpl<'scalar>
impl<'scalar> Send for ScalarRefImpl<'scalar>
impl<'scalar> Sync for ScalarRefImpl<'scalar>
impl<'scalar> Unpin for ScalarRefImpl<'scalar>
impl<'scalar> UnwindSafe for ScalarRefImpl<'scalar>
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> BorrowToSql for Twhere
T: ToSql,
impl<T> BorrowToSql for Twhere
T: ToSql,
§fn borrow_to_sql(&self) -> &dyn ToSql
fn borrow_to_sql(&self) -> &dyn ToSql
self
as a ToSql
trait object.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for 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
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<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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
§impl<M> MetricVecRelabelExt for M
impl<M> MetricVecRelabelExt for M
§fn relabel(
self,
metric_level: MetricLevel,
relabel_threshold: MetricLevel,
) -> RelabeledMetricVec<M>
fn relabel( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, ) -> RelabeledMetricVec<M>
RelabeledMetricVec::with_metric_level
].§fn relabel_n(
self,
metric_level: MetricLevel,
relabel_threshold: MetricLevel,
relabel_num: usize,
) -> RelabeledMetricVec<M>
fn relabel_n( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, relabel_num: usize, ) -> RelabeledMetricVec<M>
RelabeledMetricVec::with_metric_level_relabel_n
].§fn relabel_debug_1(
self,
relabel_threshold: MetricLevel,
) -> RelabeledMetricVec<M>
fn relabel_debug_1( self, relabel_threshold: MetricLevel, ) -> RelabeledMetricVec<M>
RelabeledMetricVec::with_metric_level_relabel_n
] with metric_level
set to
MetricLevel::Debug
and relabel_num
set to 1.§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> Pointable for T
impl<T> Pointable for T
Source§impl<T> SameOrElseExt for Twhere
T: Eq,
impl<T> SameOrElseExt for Twhere
T: Eq,
Source§fn same_or_else(self, other: T, f: impl FnOnce() -> T) -> T
fn same_or_else(self, other: T, f: impl FnOnce() -> T) -> T
self
and other
are equal, if so, return self
, otherwise return the result of f()
.§impl<T> Scope for T
impl<T> Scope for T
§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.Source§impl<T> ToOwnedDatum for Twhere
T: Into<ScalarImpl>,
impl<T> ToOwnedDatum for Twhere
T: Into<ScalarImpl>,
Source§fn to_owned_datum(self) -> Option<ScalarImpl>
fn to_owned_datum(self) -> Option<ScalarImpl>
Datum
.