#[repr(transparent)]pub struct Timestamptz(i64);Expand description
Timestamp with timezone.
Tuple Fields§
§0: i64Implementations§
Source§impl Timestamptz
 
impl Timestamptz
pub const MIN: Self
Sourcepub fn from_secs(timestamp_secs: i64) -> Option<Self>
 
pub fn from_secs(timestamp_secs: i64) -> Option<Self>
Creates a Timestamptz from seconds. Returns None if the given timestamp is out of range.
Sourcepub fn from_millis(timestamp_millis: i64) -> Option<Self>
 
pub fn from_millis(timestamp_millis: i64) -> Option<Self>
Creates a Timestamptz from milliseconds. Returns None if the given timestamp is out of
range.
Sourcepub fn from_micros(timestamp_micros: i64) -> Self
 
pub fn from_micros(timestamp_micros: i64) -> Self
Creates a Timestamptz from microseconds.
Sourcepub fn from_nanos(timestamp_nanos: i64) -> Option<Self>
 
pub fn from_nanos(timestamp_nanos: i64) -> Option<Self>
Creates a Timestamptz from microseconds.
Sourcepub fn timestamp_micros(&self) -> i64
 
pub fn timestamp_micros(&self) -> i64
Returns the number of non-leap-microseconds since January 1, 1970 UTC.
Sourcepub fn timestamp_millis(&self) -> i64
 
pub fn timestamp_millis(&self) -> i64
Returns the number of non-leap-milliseconds since January 1, 1970 UTC.
Sourcepub fn timestamp_nanos(&self) -> Option<i64>
 
pub fn timestamp_nanos(&self) -> Option<i64>
Returns the number of non-leap-nanosseconds since January 1, 1970 UTC.
Sourcepub fn timestamp(&self) -> i64
 
pub fn timestamp(&self) -> i64
Returns the number of non-leap seconds since January 1, 1970 0:00:00 UTC (aka “UNIX timestamp”).
Sourcepub fn timestamp_subsec_nanos(&self) -> u32
 
pub fn timestamp_subsec_nanos(&self) -> u32
Returns the number of nanoseconds since the last second boundary.
pub fn to_datetime_utc(self) -> DateTime<Utc>
pub fn to_datetime_in_zone(self, tz: Tz) -> DateTime<Tz>
pub fn lookup_time_zone(time_zone: &str) -> Result<Tz, String>
pub fn from_protobuf(cur: &mut Cursor<&[u8]>) -> ArrayResult<Timestamptz>
pub fn to_protobuf(self, output: &mut impl Write) -> ArrayResult<usize>
Trait Implementations§
Source§impl ChronoFieldInner for Timestamptz
 
impl ChronoFieldInner for Timestamptz
Source§impl Clone for Timestamptz
 
impl Clone for Timestamptz
Source§fn clone(&self) -> Timestamptz
 
fn clone(&self) -> Timestamptz
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for Timestamptz
 
impl Debug for Timestamptz
Source§impl Default for Timestamptz
 
impl Default for Timestamptz
Source§fn default() -> Timestamptz
 
fn default() -> Timestamptz
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Timestamptz
 
impl<'de> Deserialize<'de> for Timestamptz
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Timestamptz
 
impl Display for Timestamptz
Source§impl From<Timestamptz> for DateTime<Utc>
 
impl From<Timestamptz> for DateTime<Utc>
Source§fn from(tz: Timestamptz) -> Self
 
fn from(tz: Timestamptz) -> Self
Converts to this type from the input type.
Source§impl From<Timestamptz> for ScalarImpl
 
impl From<Timestamptz> for ScalarImpl
Source§fn from(val: Timestamptz) -> Self
 
fn from(val: Timestamptz) -> Self
Converts to this type from the input type.
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
Converts to this type from the input type.
Source§impl FromIntoArrowWithUnit for Timestamptz
 
impl FromIntoArrowWithUnit for Timestamptz
type ArrowType = i64
Source§type TimestampType = TimeUnit
 
type TimestampType = TimeUnit
The timestamp type used to distinguish different time units, only utilized when the Arrow type is a timestamp.
fn from_arrow_with_unit( value: Self::ArrowType, time_unit: Self::TimestampType, ) -> Self
fn into_arrow_with_unit(self, time_unit: Self::TimestampType) -> Self::ArrowType
Source§impl FromIntoArrowWithUnit for Timestamptz
 
impl FromIntoArrowWithUnit for Timestamptz
type ArrowType = i64
Source§type TimestampType = TimeUnit
 
type TimestampType = TimeUnit
The timestamp type used to distinguish different time units, only utilized when the Arrow type is a timestamp.
fn from_arrow_with_unit( value: Self::ArrowType, time_unit: Self::TimestampType, ) -> Self
fn into_arrow_with_unit(self, time_unit: Self::TimestampType) -> Self::ArrowType
Source§impl<'a> FromSql<'a> for Timestamptz
 
impl<'a> FromSql<'a> for Timestamptz
Source§fn from_sql(
    ty: &Type,
    raw: &'a [u8],
) -> Result<Self, Box<dyn Error + Sync + Send>>
 
fn from_sql( ty: &Type, raw: &'a [u8], ) -> Result<Self, Box<dyn Error + Sync + Send>>
Creates a new value of this type from a buffer of data of the specified
Postgres 
Type in its binary format. Read moreSource§fn accepts(ty: &Type) -> bool
 
fn accepts(ty: &Type) -> bool
Determines if a value of this type can be created from the specified
Postgres 
Type.Source§impl FromStr for Timestamptz
 
impl FromStr for Timestamptz
Source§impl Hash for Timestamptz
 
impl Hash for Timestamptz
Source§impl HashKeyDe for Timestamptz
 
impl HashKeyDe for Timestamptz
fn deserialize(_data_type: &DataType, buf: impl Buf) -> Self
Source§impl HashKeySer<'_> for Timestamptz
 
impl HashKeySer<'_> for Timestamptz
Source§fn serialize_into(self, buf: impl BufMut)
 
fn serialize_into(self, buf: impl BufMut)
Serialize the scalar into the given buffer.
Source§fn exact_size() -> Option<usize>
 
fn exact_size() -> Option<usize>
Returns 
Some if the serialized size is known for this scalar type.Source§fn estimated_size(self) -> usize
 
fn estimated_size(self) -> usize
Returns the estimated serialized size for this scalar.
Source§impl Ord for Timestamptz
 
impl Ord for Timestamptz
Source§fn cmp(&self, other: &Timestamptz) -> Ordering
 
fn cmp(&self, other: &Timestamptz) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Timestamptz
 
impl PartialEq for Timestamptz
Source§impl PartialOrd for Timestamptz
 
impl PartialOrd for Timestamptz
Source§impl PrimitiveArrayItemType for Timestamptz
 
impl PrimitiveArrayItemType for Timestamptz
Source§fn erase_array_type(arr: PrimitiveArray<Self>) -> ArrayImpl
 
fn erase_array_type(arr: PrimitiveArray<Self>) -> ArrayImpl
A helper to convert a primitive array to 
ArrayImpl.Source§fn try_into_array(arr: ArrayImpl) -> Option<PrimitiveArray<Self>>
 
fn try_into_array(arr: ArrayImpl) -> Option<PrimitiveArray<Self>>
A helper to convert 
ArrayImpl to self.Source§fn try_into_array_ref(arr: &ArrayImpl) -> Option<&PrimitiveArray<Self>>
 
fn try_into_array_ref(arr: &ArrayImpl) -> Option<&PrimitiveArray<Self>>
A helper to convert 
ArrayImpl to self.Source§fn array_type() -> ArrayType
 
fn array_type() -> ArrayType
Returns array type of the primitive array
fn to_protobuf<T: Write>(self, output: &mut T) -> ArrayResult<usize>
fn from_protobuf(cur: &mut Cursor<&[u8]>) -> ArrayResult<Self>
Source§impl RandValue for Timestamptz
 
impl RandValue for Timestamptz
fn rand_value<R: Rng>(rand: &mut R) -> Self
Source§impl Scalar for Timestamptz
Implement Scalar for Timestamptz.
 
impl Scalar for Timestamptz
Implement Scalar for Timestamptz.
Source§type ScalarRefType<'a> = Timestamptz
 
type ScalarRefType<'a> = Timestamptz
Type for reference of 
ScalarSource§fn as_scalar_ref(&self) -> Timestamptz
 
fn as_scalar_ref(&self) -> Timestamptz
Get a reference to current scalar.
fn to_scalar_value(self) -> ScalarImpl
Source§impl ScalarRef<'_> for Timestamptz
Implement ScalarRef for Timestamptz.
 
impl ScalarRef<'_> for Timestamptz
Implement ScalarRef for Timestamptz.
Source§type ScalarType = Timestamptz
 
type ScalarType = Timestamptz
ScalarType is the owned type of current ScalarRef.Source§fn to_owned_scalar(&self) -> Timestamptz
 
fn to_owned_scalar(&self) -> Timestamptz
Convert 
ScalarRef to an owned scalar.Source§fn hash_scalar<H: Hasher>(&self, state: &mut H)
 
fn hash_scalar<H: Hasher>(&self, state: &mut H)
A wrapped hash function to get the hash value for this scaler.
Source§impl Serialize for Timestamptz
 
impl Serialize for Timestamptz
Source§impl ToBinary for Timestamptz
 
impl ToBinary for Timestamptz
fn to_binary_with_type(&self, ty: &DataType) -> Result<Bytes, ToBinaryError>
Source§impl ToSql for Timestamptz
 
impl ToSql for Timestamptz
Source§fn accepts(ty: &Type) -> bool
 
fn accepts(ty: &Type) -> bool
Determines if a value of this type can be converted to the specified
Postgres 
Type.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>>
An adaptor method used internally by Rust-Postgres. Read more
Source§fn to_sql(
    &self,
    _: &Type,
    out: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn to_sql(
    &self,
    _: &Type,
    out: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Converts the value of 
self into the binary format of the specified
Postgres Type, appending it to out. Read more§fn encode_format(&self, _ty: &Type) -> Format
 
fn encode_format(&self, _ty: &Type) -> Format
Specify the encode format
Source§impl ToText for Timestamptz
 
impl ToText for Timestamptz
Source§fn write<W: Write>(&self, f: &mut W) -> Result
 
fn write<W: Write>(&self, f: &mut W) -> Result
Write the text to the writer regardless of its data type Read more
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
Write the text to the writer according to its data type
Source§fn to_text_with_type(&self, ty: &DataType) -> String
 
fn to_text_with_type(&self, ty: &DataType) -> String
Convert to text according to its data type
Source§fn to_text(&self) -> String
 
fn to_text(&self) -> String
to_text is a special version of to_text_with_type, it convert the scalar to default type
text. E.g. for Int64, it will convert to text as a Int64 type.
We should prefer to use to_text_with_type because it’s more clear and readable. Read moreSource§fn text_display(&self) -> impl Display + '_
 
fn text_display(&self) -> impl Display + '_
Returns an displayable wrapper implemented with 
ToText::write.Source§impl TryFrom<ScalarImpl> for Timestamptz
 
impl TryFrom<ScalarImpl> for Timestamptz
Source§type Error = ArrayError
 
type Error = ArrayError
The type returned in the event of a conversion error.
Source§fn try_from(val: ScalarImpl) -> ArrayResult<Self>
 
fn try_from(val: ScalarImpl) -> ArrayResult<Self>
Performs the conversion.
Source§impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Timestamptz
 
impl<'scalar> TryFrom<ScalarRefImpl<'scalar>> for Timestamptz
Source§type Error = ArrayError
 
type Error = ArrayError
The type returned in the event of a conversion error.
Source§fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
 
fn try_from(val: ScalarRefImpl<'scalar>) -> ArrayResult<Self>
Performs the conversion.
Source§impl<'a> WithDataType for &'a Timestamptz
 
impl<'a> WithDataType for &'a Timestamptz
Source§fn default_data_type() -> DataType
 
fn default_data_type() -> DataType
Returns the most obvious 
DataType for the rust type.Source§impl<'a> WithDataType for &'a mut Timestamptz
 
impl<'a> WithDataType for &'a mut Timestamptz
Source§fn default_data_type() -> DataType
 
fn default_data_type() -> DataType
Returns the most obvious 
DataType for the rust type.Source§impl WithDataType for Box<Timestamptz>
 
impl WithDataType for Box<Timestamptz>
Source§fn default_data_type() -> DataType
 
fn default_data_type() -> DataType
Returns the most obvious 
DataType for the rust type.Source§impl WithDataType for Timestamptz
 
impl WithDataType for Timestamptz
Source§fn default_data_type() -> DataType
 
fn default_data_type() -> DataType
Returns the most obvious 
DataType for the rust type.impl Copy for Timestamptz
impl Eq for Timestamptz
impl StructuralPartialEq for Timestamptz
impl ZeroHeapSize for Timestamptz
Auto Trait Implementations§
impl Freeze for Timestamptz
impl RefUnwindSafe for Timestamptz
impl Send for Timestamptz
impl Sync for Timestamptz
impl Unpin for Timestamptz
impl UnwindSafe for Timestamptz
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
Mutably borrows from an owned value. Read more
§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
Returns a reference to 
self as a ToSql trait object.Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<T> Code for Twhere
    T: Serialize + DeserializeOwned,
 
impl<T> Code for Twhere
    T: Serialize + DeserializeOwned,
§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
§impl<T> Conv for T
 
impl<T> Conv for T
§impl<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
Compare self to 
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
Compare self to 
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
Checks if this value is equivalent to the given key. Read more
§impl<T> EstimateSize for Twhere
    T: ZeroHeapSize,
 
impl<T> EstimateSize for Twhere
    T: ZeroHeapSize,
§fn estimated_heap_size(&self) -> usize
 
fn estimated_heap_size(&self) -> usize
The estimated heap size of the current struct in bytes.
§fn estimated_size(&self) -> usizewhere
    Self: Sized,
 
fn estimated_size(&self) -> usizewhere
    Self: Sized,
The estimated total size of the current struct in bytes, including the 
estimated_heap_size
and the size of Self.§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,
Causes 
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,
Causes 
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,
Causes 
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,
Causes 
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,
Causes 
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,
Causes 
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,
Causes 
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,
Causes 
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,
Formats each item in a sequence. Read more
§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>
Converts 
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>
Converts 
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>
Wrap the input message 
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>
Equivalent to [
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>
Equivalent to [
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>
Equivalent to [
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,
Pipes by value. This is generally the method you want to use. Read more
§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,
Borrows 
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,
Mutably borrows 
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
Borrows 
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
Mutably borrows 
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
Borrows 
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
Check if 
self and other are equal, if so, return self, otherwise return the result of f().Source§impl<T> ScalarPartialOrd for Twhere
    T: PrimitiveArrayItemType + Scalar,
 
impl<T> ScalarPartialOrd for Twhere
    T: PrimitiveArrayItemType + Scalar,
fn scalar_cmp(&self, other: T) -> Option<Ordering>
§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
Immutable access to the 
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
Mutable access to the 
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
Immutable access to the 
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
Mutable access to the 
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
Immutable access to the 
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
Mutable access to the 
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
Calls 
.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
Calls 
.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
Calls 
.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
Calls 
.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
Calls 
.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
Calls 
.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
Calls 
.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>
Convert the datum to an owned 
Datum.