pub enum ScalarImpl {
Show 20 variants
Int16(i16),
Int32(i32),
Int64(i64),
Int256(Int256),
Float32(OrderedFloat<f32>),
Float64(OrderedFloat<f64>),
Utf8(Box<str>),
Bool(bool),
Decimal(Decimal),
Interval(Interval),
Date(Date),
Time(Time),
Timestamp(Timestamp),
Timestamptz(Timestamptz),
Jsonb(JsonbVal),
Serial(Serial),
Struct(StructValue),
List(ListValue),
Map(MapValue),
Bytea(Box<[u8]>),
}
Expand description
ScalarImpl
embeds all possible scalars in the evaluation framework.
Note: ScalarImpl
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(Int256)
Float32(OrderedFloat<f32>)
Float64(OrderedFloat<f64>)
Utf8(Box<str>)
Bool(bool)
Decimal(Decimal)
Interval(Interval)
Date(Date)
Time(Time)
Timestamp(Timestamp)
Timestamptz(Timestamptz)
Jsonb(JsonbVal)
Serial(Serial)
Struct(StructValue)
List(ListValue)
Map(MapValue)
Bytea(Box<[u8]>)
Implementations§
source§impl ScalarImpl
impl ScalarImpl
sourcepub fn successor(&self) -> Option<ScalarImpl>
pub fn successor(&self) -> Option<ScalarImpl>
Returns the successor of the current value if it exists.
See also Successor
.
The function may return None when:
- The current value is the maximum value of the type.
- The successor value of the type is not well-defined.
source§impl ScalarImpl
impl ScalarImpl
source§impl ScalarImpl
impl ScalarImpl
source§impl ScalarImpl
impl ScalarImpl
source§impl ScalarImpl
impl ScalarImpl
source§impl ScalarImpl
impl ScalarImpl
sourcepub fn as_float32(&self) -> &OrderedFloat<f32>
pub fn as_float32(&self) -> &OrderedFloat<f32>
§Panics
If the scalar is not of the expected type.
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 ScalarImpl
impl ScalarImpl
sourcepub fn as_float64(&self) -> &OrderedFloat<f64>
pub fn as_float64(&self) -> &OrderedFloat<f64>
§Panics
If the scalar is not of the expected type.
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 ScalarImpl
impl ScalarImpl
source§impl ScalarImpl
impl ScalarImpl
source§impl ScalarImpl
impl ScalarImpl
sourcepub fn as_decimal(&self) -> &Decimal
pub fn as_decimal(&self) -> &Decimal
§Panics
If the scalar is not of the expected type.
sourcepub fn into_decimal(self) -> Decimal
pub fn into_decimal(self) -> Decimal
§Panics
If the scalar is not of the expected type.
source§impl ScalarImpl
impl ScalarImpl
sourcepub fn as_interval(&self) -> &Interval
pub fn as_interval(&self) -> &Interval
§Panics
If the scalar is not of the expected type.
sourcepub fn into_interval(self) -> Interval
pub fn into_interval(self) -> Interval
§Panics
If the scalar is not of the expected type.
source§impl ScalarImpl
impl ScalarImpl
source§impl ScalarImpl
impl ScalarImpl
source§impl ScalarImpl
impl ScalarImpl
sourcepub fn as_timestamp(&self) -> &Timestamp
pub fn as_timestamp(&self) -> &Timestamp
§Panics
If the scalar is not of the expected type.
sourcepub fn into_timestamp(self) -> Timestamp
pub fn into_timestamp(self) -> Timestamp
§Panics
If the scalar is not of the expected type.
source§impl ScalarImpl
impl ScalarImpl
sourcepub fn as_timestamptz(&self) -> &Timestamptz
pub fn as_timestamptz(&self) -> &Timestamptz
§Panics
If the scalar is not of the expected type.
sourcepub fn into_timestamptz(self) -> Timestamptz
pub fn into_timestamptz(self) -> Timestamptz
§Panics
If the scalar is not of the expected type.
source§impl ScalarImpl
impl ScalarImpl
source§impl ScalarImpl
impl ScalarImpl
source§impl ScalarImpl
impl ScalarImpl
sourcepub fn as_struct(&self) -> &StructValue
pub fn as_struct(&self) -> &StructValue
§Panics
If the scalar is not of the expected type.
sourcepub fn into_struct(self) -> StructValue
pub fn into_struct(self) -> StructValue
§Panics
If the scalar is not of the expected type.
source§impl ScalarImpl
impl ScalarImpl
source§impl ScalarImpl
impl ScalarImpl
source§impl ScalarImpl
impl ScalarImpl
source§impl ScalarImpl
impl ScalarImpl
sourcepub fn from_binary(
bytes: &Bytes,
data_type: &DataType,
) -> Result<ScalarImpl, Box<dyn Error + Sync + Send>>
pub fn from_binary( bytes: &Bytes, data_type: &DataType, ) -> Result<ScalarImpl, Box<dyn Error + Sync + Send>>
Creates a scalar from pgwire “BINARY” format.
The counterpart of to_binary::ToBinary
.
sourcepub fn from_text(
s: &str,
data_type: &DataType,
) -> Result<ScalarImpl, Box<dyn Error + Sync + Send>>
pub fn from_text( s: &str, data_type: &DataType, ) -> Result<ScalarImpl, Box<dyn Error + Sync + Send>>
Creates a scalar from pgwire “TEXT” format.
The counterpart of ToText
.
pub fn from_text_for_test( s: &str, data_type: &DataType, ) -> Result<ScalarImpl, Box<dyn Error + Sync + Send>>
source§impl ScalarImpl
impl ScalarImpl
sourcepub fn as_scalar_ref_impl(&self) -> ScalarRefImpl<'_>
pub fn as_scalar_ref_impl(&self) -> ScalarRefImpl<'_>
Converts ScalarImpl
to ScalarRefImpl
source§impl ScalarImpl
impl ScalarImpl
sourcepub fn serialize(&self, ser: &mut Serializer<impl BufMut>) -> Result<(), Error>
pub fn serialize(&self, ser: &mut Serializer<impl BufMut>) -> Result<(), Error>
Serialize the scalar into the memcomparable
format.
sourcepub fn deserialize(
ty: &DataType,
de: &mut Deserializer<impl Buf>,
) -> Result<ScalarImpl, Error>
pub fn deserialize( ty: &DataType, de: &mut Deserializer<impl Buf>, ) -> Result<ScalarImpl, Error>
Deserialize the scalar from the memcomparable
format.
pub fn as_integral(&self) -> i64
Trait Implementations§
source§impl Clone for ScalarImpl
impl Clone for ScalarImpl
source§fn clone(&self) -> ScalarImpl
fn clone(&self) -> ScalarImpl
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScalarImpl
impl Debug for ScalarImpl
source§impl DefaultOrd for ScalarImpl
impl DefaultOrd for ScalarImpl
fn default_cmp(&self, other: &ScalarImpl) -> Ordering
source§impl DefaultPartialOrd for ScalarImpl
impl DefaultPartialOrd for ScalarImpl
fn default_partial_cmp(&self, other: &ScalarImpl) -> Option<Ordering>
source§impl EstimateSize for ScalarImpl
impl EstimateSize for ScalarImpl
source§fn estimated_heap_size(&self) -> usize
fn estimated_heap_size(&self) -> usize
source§fn estimated_size(&self) -> usizewhere
Self: Sized,
fn estimated_size(&self) -> usizewhere
Self: Sized,
estimated_heap_size
and the size of Self
.source§impl From<&[u8]> for ScalarImpl
impl From<&[u8]> for ScalarImpl
source§fn from(s: &[u8]) -> ScalarImpl
fn from(s: &[u8]) -> ScalarImpl
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 From<&String> for ScalarImpl
impl From<&String> for ScalarImpl
source§fn from(s: &String) -> ScalarImpl
fn from(s: &String) -> ScalarImpl
source§impl From<&str> for ScalarImpl
impl From<&str> for ScalarImpl
source§fn from(s: &str) -> ScalarImpl
fn from(s: &str) -> ScalarImpl
source§impl From<Bytes> for ScalarImpl
impl From<Bytes> for ScalarImpl
source§fn from(v: Bytes) -> ScalarImpl
fn from(v: Bytes) -> ScalarImpl
source§impl From<Date> for ScalarImpl
impl From<Date> for ScalarImpl
source§fn from(val: Date) -> ScalarImpl
fn from(val: Date) -> ScalarImpl
source§impl From<Decimal> for ScalarImpl
impl From<Decimal> for ScalarImpl
source§fn from(val: Decimal) -> ScalarImpl
fn from(val: Decimal) -> ScalarImpl
source§impl From<Int256> for ScalarImpl
impl From<Int256> for ScalarImpl
source§fn from(val: Int256) -> ScalarImpl
fn from(val: Int256) -> ScalarImpl
source§impl From<Interval> for ScalarImpl
impl From<Interval> for ScalarImpl
source§fn from(val: Interval) -> ScalarImpl
fn from(val: Interval) -> ScalarImpl
source§impl From<JsonbRef<'_>> for ScalarImpl
impl From<JsonbRef<'_>> for ScalarImpl
source§fn from(jsonb: JsonbRef<'_>) -> ScalarImpl
fn from(jsonb: JsonbRef<'_>) -> ScalarImpl
source§impl From<JsonbVal> for ScalarImpl
impl From<JsonbVal> for ScalarImpl
source§fn from(val: JsonbVal) -> ScalarImpl
fn from(val: JsonbVal) -> ScalarImpl
source§impl From<ListRef<'_>> for ScalarImpl
impl From<ListRef<'_>> for ScalarImpl
source§fn from(list: ListRef<'_>) -> ScalarImpl
fn from(list: ListRef<'_>) -> ScalarImpl
source§impl From<ListValue> for ScalarImpl
impl From<ListValue> for ScalarImpl
source§fn from(val: ListValue) -> ScalarImpl
fn from(val: ListValue) -> ScalarImpl
source§impl From<MapValue> for ScalarImpl
impl From<MapValue> for ScalarImpl
source§fn from(val: MapValue) -> ScalarImpl
fn from(val: MapValue) -> ScalarImpl
source§impl From<OrderedFloat<f32>> for ScalarImpl
impl From<OrderedFloat<f32>> for ScalarImpl
source§fn from(val: OrderedFloat<f32>) -> ScalarImpl
fn from(val: OrderedFloat<f32>) -> ScalarImpl
source§impl From<OrderedFloat<f64>> for ScalarImpl
impl From<OrderedFloat<f64>> for ScalarImpl
source§fn from(val: OrderedFloat<f64>) -> ScalarImpl
fn from(val: OrderedFloat<f64>) -> ScalarImpl
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 From<Serial> for ScalarImpl
impl From<Serial> for ScalarImpl
source§fn from(val: Serial) -> ScalarImpl
fn from(val: Serial) -> ScalarImpl
source§impl From<String> for ScalarImpl
impl From<String> for ScalarImpl
source§fn from(s: String) -> ScalarImpl
fn from(s: String) -> ScalarImpl
source§impl From<StructValue> for ScalarImpl
impl From<StructValue> for ScalarImpl
source§fn from(val: StructValue) -> ScalarImpl
fn from(val: StructValue) -> ScalarImpl
source§impl From<Time> for ScalarImpl
impl From<Time> for ScalarImpl
source§fn from(val: Time) -> ScalarImpl
fn from(val: Time) -> ScalarImpl
source§impl From<Timestamp> for ScalarImpl
impl From<Timestamp> for ScalarImpl
source§fn from(val: Timestamp) -> ScalarImpl
fn from(val: Timestamp) -> ScalarImpl
source§impl From<Timestamptz> for ScalarImpl
impl From<Timestamptz> for ScalarImpl
source§fn from(val: Timestamptz) -> ScalarImpl
fn from(val: Timestamptz) -> ScalarImpl
source§impl<T> From<Vec<Option<T>>> for ScalarImplwhere
T: PrimitiveArrayItemType,
impl<T> From<Vec<Option<T>>> for ScalarImplwhere
T: PrimitiveArrayItemType,
source§impl<T> From<Vec<T>> for ScalarImplwhere
T: PrimitiveArrayItemType,
impl<T> From<Vec<T>> for ScalarImplwhere
T: PrimitiveArrayItemType,
source§fn from(v: Vec<T>) -> ScalarImpl
fn from(v: Vec<T>) -> ScalarImpl
source§impl From<bool> for ScalarImpl
impl From<bool> for ScalarImpl
source§fn from(val: bool) -> ScalarImpl
fn from(val: bool) -> ScalarImpl
source§impl From<char> for ScalarImpl
impl From<char> for ScalarImpl
source§fn from(c: char) -> ScalarImpl
fn from(c: char) -> ScalarImpl
source§impl From<f32> for ScalarImpl
impl From<f32> for ScalarImpl
source§fn from(f: f32) -> ScalarImpl
fn from(f: f32) -> ScalarImpl
source§impl From<f64> for ScalarImpl
impl From<f64> for ScalarImpl
source§fn from(f: f64) -> ScalarImpl
fn from(f: f64) -> ScalarImpl
source§impl From<i16> for ScalarImpl
impl From<i16> for ScalarImpl
source§fn from(val: i16) -> ScalarImpl
fn from(val: i16) -> ScalarImpl
source§impl From<i32> for ScalarImpl
impl From<i32> for ScalarImpl
source§fn from(val: i32) -> ScalarImpl
fn from(val: i32) -> ScalarImpl
source§impl From<i64> for ScalarImpl
impl From<i64> for ScalarImpl
source§fn from(val: i64) -> ScalarImpl
fn from(val: i64) -> ScalarImpl
source§impl<'a> FromSql<'a> for ScalarImpl
impl<'a> FromSql<'a> for ScalarImpl
source§fn from_sql(
ty: &Type,
raw: &'a [u8],
) -> Result<ScalarImpl, Box<dyn Error + Sync + Send>>
fn from_sql( ty: &Type, raw: &'a [u8], ) -> Result<ScalarImpl, Box<dyn Error + Sync + Send>>
Type
in its binary format. Read moresource§fn accepts(ty: &Type) -> bool
fn accepts(ty: &Type) -> bool
Type
.source§impl Hash for ScalarImpl
impl Hash for ScalarImpl
source§impl PartialEq for ScalarImpl
impl PartialEq for ScalarImpl
source§impl ToSql for ScalarImpl
impl ToSql for ScalarImpl
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
ScalarImpl: Sized,
fn to_sql(
&self,
ty: &Type,
out: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
ScalarImpl: Sized,
self
into the binary format of the specified
Postgres Type
, appending it to out
. Read moresource§fn accepts(_ty: &Type) -> boolwhere
ScalarImpl: Sized,
fn accepts(_ty: &Type) -> boolwhere
ScalarImpl: Sized,
Type
.§fn encode_format(&self, _ty: &Type) -> Format
fn encode_format(&self, _ty: &Type) -> Format
source§impl TryFrom<ScalarImpl> for Box<[u8]>
impl TryFrom<ScalarImpl> for Box<[u8]>
source§type Error = ArrayError
type Error = ArrayError
source§fn try_from(val: ScalarImpl) -> Result<Box<[u8]>, ArrayError>
fn try_from(val: ScalarImpl) -> Result<Box<[u8]>, ArrayError>
source§impl TryFrom<ScalarImpl> for Box<str>
impl TryFrom<ScalarImpl> for Box<str>
source§type Error = ArrayError
type Error = ArrayError
source§fn try_from(val: ScalarImpl) -> Result<Box<str>, ArrayError>
fn try_from(val: ScalarImpl) -> Result<Box<str>, ArrayError>
source§impl TryFrom<ScalarImpl> for String
impl TryFrom<ScalarImpl> for String
source§type Error = ArrayError
type Error = ArrayError
source§fn try_from(val: ScalarImpl) -> Result<String, ArrayError>
fn try_from(val: ScalarImpl) -> Result<String, ArrayError>
source§impl TryFrom<ScalarImpl> for bool
impl TryFrom<ScalarImpl> for bool
source§type Error = ArrayError
type Error = ArrayError
source§fn try_from(val: ScalarImpl) -> Result<bool, ArrayError>
fn try_from(val: ScalarImpl) -> Result<bool, ArrayError>
impl Eq for ScalarImpl
impl !PartialOrd for ScalarImpl
impl StructuralPartialEq for ScalarImpl
Auto Trait Implementations§
impl Freeze for ScalarImpl
impl RefUnwindSafe for ScalarImpl
impl Send for ScalarImpl
impl Sync for ScalarImpl
impl Unpin for ScalarImpl
impl UnwindSafe for ScalarImpl
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,
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
.