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 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
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> 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<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> 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>
source§impl<M> MetricVecRelabelExt for M
impl<M> MetricVecRelabelExt for M
source§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
.source§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
.source§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> Pointable for T
impl<T> Pointable for T
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
.