pub enum ScalarRefImpl<'scalar> {
Show 20 variants
Int16(i16),
Int32(i32),
Int64(i64),
Int256(Int256Ref<'scalar>),
Float32(OrderedFloat<f32>),
Float64(OrderedFloat<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(OrderedFloat<f32>)
Float64(OrderedFloat<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) -> OrderedFloat<f32>
pub fn into_float32(self) -> OrderedFloat<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) -> OrderedFloat<f64>
pub fn into_float64(self) -> OrderedFloat<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: &ScalarRefImpl<'_>) -> Ordering
source§impl DefaultPartialOrd for ScalarRefImpl<'_>
impl DefaultPartialOrd for ScalarRefImpl<'_>
fn default_partial_cmp(&self, other: &ScalarRefImpl<'_>) -> Option<Ordering>
source§impl<'scalar> From<&'scalar [u8]> for ScalarRefImpl<'scalar>
impl<'scalar> From<&'scalar [u8]> for ScalarRefImpl<'scalar>
source§fn from(val: &'scalar [u8]) -> ScalarRefImpl<'scalar>
fn from(val: &'scalar [u8]) -> 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) -> ScalarRefImpl<'a>
fn from(scalar: &'a ScalarImpl) -> ScalarRefImpl<'a>
source§impl<'scalar> From<&'scalar str> for ScalarRefImpl<'scalar>
impl<'scalar> From<&'scalar str> for ScalarRefImpl<'scalar>
source§fn from(val: &'scalar str) -> ScalarRefImpl<'scalar>
fn from(val: &'scalar str) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<Date> for ScalarRefImpl<'scalar>
impl<'scalar> From<Date> for ScalarRefImpl<'scalar>
source§fn from(val: Date) -> ScalarRefImpl<'scalar>
fn from(val: Date) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<Decimal> for ScalarRefImpl<'scalar>
impl<'scalar> From<Decimal> for ScalarRefImpl<'scalar>
source§fn from(val: Decimal) -> ScalarRefImpl<'scalar>
fn from(val: Decimal) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<Int256Ref<'scalar>> for ScalarRefImpl<'scalar>
impl<'scalar> From<Int256Ref<'scalar>> for ScalarRefImpl<'scalar>
source§fn from(val: Int256Ref<'scalar>) -> ScalarRefImpl<'scalar>
fn from(val: Int256Ref<'scalar>) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<Interval> for ScalarRefImpl<'scalar>
impl<'scalar> From<Interval> for ScalarRefImpl<'scalar>
source§fn from(val: Interval) -> ScalarRefImpl<'scalar>
fn from(val: Interval) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<JsonbRef<'scalar>> for ScalarRefImpl<'scalar>
impl<'scalar> From<JsonbRef<'scalar>> for ScalarRefImpl<'scalar>
source§fn from(val: JsonbRef<'scalar>) -> ScalarRefImpl<'scalar>
fn from(val: JsonbRef<'scalar>) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<ListRef<'scalar>> for ScalarRefImpl<'scalar>
impl<'scalar> From<ListRef<'scalar>> for ScalarRefImpl<'scalar>
source§fn from(val: ListRef<'scalar>) -> ScalarRefImpl<'scalar>
fn from(val: ListRef<'scalar>) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<MapRef<'scalar>> for ScalarRefImpl<'scalar>
impl<'scalar> From<MapRef<'scalar>> for ScalarRefImpl<'scalar>
source§fn from(val: MapRef<'scalar>) -> ScalarRefImpl<'scalar>
fn from(val: MapRef<'scalar>) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<OrderedFloat<f32>> for ScalarRefImpl<'scalar>
impl<'scalar> From<OrderedFloat<f32>> for ScalarRefImpl<'scalar>
source§fn from(val: OrderedFloat<f32>) -> ScalarRefImpl<'scalar>
fn from(val: OrderedFloat<f32>) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<OrderedFloat<f64>> for ScalarRefImpl<'scalar>
impl<'scalar> From<OrderedFloat<f64>> for ScalarRefImpl<'scalar>
source§fn from(val: OrderedFloat<f64>) -> ScalarRefImpl<'scalar>
fn from(val: OrderedFloat<f64>) -> ScalarRefImpl<'scalar>
source§impl From<ScalarRefImpl<'_>> for ScalarImpl
impl From<ScalarRefImpl<'_>> for ScalarImpl
source§fn from(scalar_ref: ScalarRefImpl<'_>) -> ScalarImpl
fn from(scalar_ref: ScalarRefImpl<'_>) -> ScalarImpl
source§impl<'scalar> From<Serial> for ScalarRefImpl<'scalar>
impl<'scalar> From<Serial> for ScalarRefImpl<'scalar>
source§fn from(val: Serial) -> ScalarRefImpl<'scalar>
fn from(val: Serial) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<StructRef<'scalar>> for ScalarRefImpl<'scalar>
impl<'scalar> From<StructRef<'scalar>> for ScalarRefImpl<'scalar>
source§fn from(val: StructRef<'scalar>) -> ScalarRefImpl<'scalar>
fn from(val: StructRef<'scalar>) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<Time> for ScalarRefImpl<'scalar>
impl<'scalar> From<Time> for ScalarRefImpl<'scalar>
source§fn from(val: Time) -> ScalarRefImpl<'scalar>
fn from(val: Time) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<Timestamp> for ScalarRefImpl<'scalar>
impl<'scalar> From<Timestamp> for ScalarRefImpl<'scalar>
source§fn from(val: Timestamp) -> ScalarRefImpl<'scalar>
fn from(val: Timestamp) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<Timestamptz> for ScalarRefImpl<'scalar>
impl<'scalar> From<Timestamptz> for ScalarRefImpl<'scalar>
source§fn from(val: Timestamptz) -> ScalarRefImpl<'scalar>
fn from(val: Timestamptz) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<bool> for ScalarRefImpl<'scalar>
impl<'scalar> From<bool> for ScalarRefImpl<'scalar>
source§fn from(val: bool) -> ScalarRefImpl<'scalar>
fn from(val: bool) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<i16> for ScalarRefImpl<'scalar>
impl<'scalar> From<i16> for ScalarRefImpl<'scalar>
source§fn from(val: i16) -> ScalarRefImpl<'scalar>
fn from(val: i16) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<i32> for ScalarRefImpl<'scalar>
impl<'scalar> From<i32> for ScalarRefImpl<'scalar>
source§fn from(val: i32) -> ScalarRefImpl<'scalar>
fn from(val: i32) -> ScalarRefImpl<'scalar>
source§impl<'scalar> From<i64> for ScalarRefImpl<'scalar>
impl<'scalar> From<i64> for ScalarRefImpl<'scalar>
source§fn from(val: i64) -> ScalarRefImpl<'scalar>
fn from(val: i64) -> 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) -> ScalarRefImpl<'_>
source§impl ToText for ScalarRefImpl<'_>
impl ToText for ScalarRefImpl<'_>
source§fn write<W>(&self, f: &mut W) -> Result<(), Error>where
W: Write,
fn write<W>(&self, f: &mut W) -> Result<(), Error>where
W: Write,
source§fn write_with_type<W>(&self, ty: &DataType, f: &mut W) -> Result<(), Error>where
W: Write,
fn write_with_type<W>(&self, ty: &DataType, f: &mut W) -> Result<(), Error>where
W: Write,
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>) -> Result<&'scalar [u8], ArrayError>
fn try_from(val: ScalarRefImpl<'scalar>) -> Result<&'scalar [u8], ArrayError>
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>) -> Result<&'scalar str, ArrayError>
fn try_from(val: ScalarRefImpl<'scalar>) -> Result<&'scalar str, ArrayError>
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>) -> Result<bool, ArrayError>
fn try_from(val: ScalarRefImpl<'scalar>) -> Result<bool, ArrayError>
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<T> Conv for T
impl<T> Conv for T
§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync 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
§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<T, U, I> LiftInto<U, I> for Twhere
U: LiftFrom<T, I>,
impl<T, U, I> LiftInto<U, I> for Twhere
U: LiftFrom<T, I>,
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> 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
§impl<Source> Sculptor<HNil, HNil> for Source
impl<Source> Sculptor<HNil, HNil> for Source
§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
.