risingwave_common::types

Enum ScalarImpl

source
pub enum ScalarImpl {
Show 20 variants Int16(i16), Int32(i32), Int64(i64), Int256(Int256), Float32(F32), Float64(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(F32)

§

Float64(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

source

pub fn get_ident(&self) -> &'static str

source§

impl ScalarImpl

source

pub fn successor(&self) -> Option<Self>

Returns the successor of the current value if it exists.

See also Successor.

The function may return None when:

  1. The current value is the maximum value of the type.
  2. The successor value of the type is not well-defined.
source§

impl ScalarImpl

source

pub fn as_int16(&self) -> &i16

§Panics

If the scalar is not of the expected type.

source

pub fn into_int16(self) -> i16

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_int32(&self) -> &i32

§Panics

If the scalar is not of the expected type.

source

pub fn into_int32(self) -> i32

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_int64(&self) -> &i64

§Panics

If the scalar is not of the expected type.

source

pub fn into_int64(self) -> i64

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_int256(&self) -> &Int256

§Panics

If the scalar is not of the expected type.

source

pub fn into_int256(self) -> Int256

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_float32(&self) -> &F32

§Panics

If the scalar is not of the expected type.

source

pub fn into_float32(self) -> F32

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_float64(&self) -> &F64

§Panics

If the scalar is not of the expected type.

source

pub fn into_float64(self) -> F64

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_utf8(&self) -> &Box<str>

§Panics

If the scalar is not of the expected type.

source

pub fn into_utf8(self) -> Box<str>

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_bool(&self) -> &bool

§Panics

If the scalar is not of the expected type.

source

pub fn into_bool(self) -> bool

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_decimal(&self) -> &Decimal

§Panics

If the scalar is not of the expected type.

source

pub fn into_decimal(self) -> Decimal

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_interval(&self) -> &Interval

§Panics

If the scalar is not of the expected type.

source

pub fn into_interval(self) -> Interval

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_date(&self) -> &Date

§Panics

If the scalar is not of the expected type.

source

pub fn into_date(self) -> Date

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_time(&self) -> &Time

§Panics

If the scalar is not of the expected type.

source

pub fn into_time(self) -> Time

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_timestamp(&self) -> &Timestamp

§Panics

If the scalar is not of the expected type.

source

pub fn into_timestamp(self) -> Timestamp

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_timestamptz(&self) -> &Timestamptz

§Panics

If the scalar is not of the expected type.

source

pub fn into_timestamptz(self) -> Timestamptz

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_jsonb(&self) -> &JsonbVal

§Panics

If the scalar is not of the expected type.

source

pub fn into_jsonb(self) -> JsonbVal

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_serial(&self) -> &Serial

§Panics

If the scalar is not of the expected type.

source

pub fn into_serial(self) -> Serial

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_struct(&self) -> &StructValue

§Panics

If the scalar is not of the expected type.

source

pub fn into_struct(self) -> StructValue

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_list(&self) -> &ListValue

§Panics

If the scalar is not of the expected type.

source

pub fn into_list(self) -> ListValue

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_map(&self) -> &MapValue

§Panics

If the scalar is not of the expected type.

source

pub fn into_map(self) -> MapValue

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn as_bytea(&self) -> &Box<[u8]>

§Panics

If the scalar is not of the expected type.

source

pub fn into_bytea(self) -> Box<[u8]>

§Panics

If the scalar is not of the expected type.

source§

impl ScalarImpl

source

pub fn from_binary( bytes: &Bytes, data_type: &DataType, ) -> Result<Self, BoxedError>

Creates a scalar from pgwire “BINARY” format.

The counterpart of to_binary::ToBinary.

source

pub fn from_text(s: &str, data_type: &DataType) -> Result<Self, BoxedError>

Creates a scalar from pgwire “TEXT” format.

The counterpart of ToText.

source

pub fn from_text_for_test( s: &str, data_type: &DataType, ) -> Result<Self, BoxedError>

source§

impl ScalarImpl

source§

impl ScalarImpl

source

pub fn serialize(&self, ser: &mut Serializer<impl BufMut>) -> Result<()>

Serialize the scalar into the memcomparable format.

source

pub fn deserialize( ty: &DataType, de: &mut Deserializer<impl Buf>, ) -> Result<Self>

Deserialize the scalar from the memcomparable format.

source

pub fn as_integral(&self) -> i64

Trait Implementations§

source§

impl Clone for ScalarImpl

source§

fn clone(&self) -> ScalarImpl

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ScalarImpl

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl DefaultOrd for ScalarImpl

source§

fn default_cmp(&self, other: &Self) -> Ordering

source§

impl DefaultPartialOrd for ScalarImpl

source§

fn default_partial_cmp(&self, other: &Self) -> Option<Ordering>

source§

impl EstimateSize for ScalarImpl

source§

fn estimated_heap_size(&self) -> usize

The estimated heap size of the current struct in bytes.
source§

fn estimated_size(&self) -> usize
where Self: Sized,

The estimated total size of the current struct in bytes, including the estimated_heap_size and the size of Self.
source§

impl From<&[u8]> for ScalarImpl

source§

fn from(s: &[u8]) -> Self

Converts to this type from the input type.
source§

impl<'a> From<&'a ScalarImpl> for ScalarRefImpl<'a>

source§

fn from(scalar: &'a ScalarImpl) -> Self

Converts to this type from the input type.
source§

impl From<&String> for ScalarImpl

source§

fn from(s: &String) -> Self

Converts to this type from the input type.
source§

impl From<&str> for ScalarImpl

source§

fn from(s: &str) -> Self

Converts to this type from the input type.
source§

impl From<Box<[u8]>> for ScalarImpl

source§

fn from(val: Box<[u8]>) -> Self

Converts to this type from the input type.
source§

impl From<Box<str>> for ScalarImpl

source§

fn from(val: Box<str>) -> Self

Converts to this type from the input type.
source§

impl From<Bytes> for ScalarImpl

source§

fn from(v: Bytes) -> Self

Converts to this type from the input type.
source§

impl From<Date> for ScalarImpl

source§

fn from(val: Date) -> Self

Converts to this type from the input type.
source§

impl From<Decimal> for ScalarImpl

source§

fn from(val: Decimal) -> Self

Converts to this type from the input type.
source§

impl From<Int256> for ScalarImpl

source§

fn from(val: Int256) -> Self

Converts to this type from the input type.
source§

impl From<Interval> for ScalarImpl

source§

fn from(val: Interval) -> Self

Converts to this type from the input type.
source§

impl From<JsonbRef<'_>> for ScalarImpl

source§

fn from(jsonb: JsonbRef<'_>) -> Self

Converts to this type from the input type.
source§

impl From<JsonbVal> for ScalarImpl

source§

fn from(val: JsonbVal) -> Self

Converts to this type from the input type.
source§

impl From<ListRef<'_>> for ScalarImpl

source§

fn from(list: ListRef<'_>) -> Self

Converts to this type from the input type.
source§

impl From<ListValue> for ScalarImpl

source§

fn from(val: ListValue) -> Self

Converts to this type from the input type.
source§

impl From<MapValue> for ScalarImpl

source§

fn from(val: MapValue) -> Self

Converts to this type from the input type.
source§

impl From<OrderedFloat<f32>> for ScalarImpl

source§

fn from(val: F32) -> Self

Converts to this type from the input type.
source§

impl From<OrderedFloat<f64>> for ScalarImpl

source§

fn from(val: F64) -> Self

Converts to this type from the input type.
source§

impl From<ScalarRefImpl<'_>> for ScalarImpl

source§

fn from(scalar_ref: ScalarRefImpl<'_>) -> Self

Converts to this type from the input type.
source§

impl From<Serial> for ScalarImpl

source§

fn from(val: Serial) -> Self

Converts to this type from the input type.
source§

impl From<String> for ScalarImpl

source§

fn from(s: String) -> Self

Converts to this type from the input type.
source§

impl From<StructValue> for ScalarImpl

source§

fn from(val: StructValue) -> Self

Converts to this type from the input type.
source§

impl From<Time> for ScalarImpl

source§

fn from(val: Time) -> Self

Converts to this type from the input type.
source§

impl From<Timestamp> for ScalarImpl

source§

fn from(val: Timestamp) -> Self

Converts to this type from the input type.
source§

impl From<Timestamptz> for ScalarImpl

source§

fn from(val: Timestamptz) -> Self

Converts to this type from the input type.
source§

impl<T: PrimitiveArrayItemType> From<Vec<Option<T>>> for ScalarImpl

source§

fn from(v: Vec<Option<T>>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<String>> for ScalarImpl

source§

fn from(v: Vec<String>) -> Self

Converts to this type from the input type.
source§

impl<T: PrimitiveArrayItemType> From<Vec<T>> for ScalarImpl

source§

fn from(v: Vec<T>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u8>> for ScalarImpl

source§

fn from(v: Vec<u8>) -> Self

Converts to this type from the input type.
source§

impl From<bool> for ScalarImpl

source§

fn from(val: bool) -> Self

Converts to this type from the input type.
source§

impl From<char> for ScalarImpl

source§

fn from(c: char) -> Self

Converts to this type from the input type.
source§

impl From<f32> for ScalarImpl

source§

fn from(f: f32) -> Self

Converts to this type from the input type.
source§

impl From<f64> for ScalarImpl

source§

fn from(f: f64) -> Self

Converts to this type from the input type.
source§

impl From<i16> for ScalarImpl

source§

fn from(val: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for ScalarImpl

source§

fn from(val: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for ScalarImpl

source§

fn from(val: i64) -> Self

Converts to this type from the input type.
source§

impl<'a> FromSql<'a> for ScalarImpl

source§

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 more
source§

fn accepts(ty: &Type) -> bool

Determines if a value of this type can be created from the specified Postgres Type.
§

fn from_sql_null(ty: &Type) -> Result<Self, Box<dyn Error + Sync + Send>>

Creates a new value of this type from a NULL SQL value. Read more
§

fn from_sql_nullable( ty: &Type, raw: Option<&'a [u8]>, ) -> Result<Self, Box<dyn Error + Sync + Send>>

A convenience function that delegates to from_sql and from_sql_null depending on the value of raw.
source§

impl Hash for ScalarImpl

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for ScalarImpl

source§

fn eq(&self, other: &ScalarImpl) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ToSql for ScalarImpl

source§

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, ty: &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
source§

fn accepts(_ty: &Type) -> bool
where Self: Sized,

Determines if a value of this type can be converted to the specified Postgres Type.
§

fn encode_format(&self, _ty: &Type) -> Format

Specify the encode format
source§

impl TryFrom<ScalarImpl> for Box<[u8]>

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for Box<str>

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for Date

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for Decimal

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for Int256

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for Interval

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for JsonbVal

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for ListValue

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for MapValue

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for F32

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for F64

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for Serial

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for String

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for StructValue

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for Time

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for Timestamp

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for Timestamptz

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for bool

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for i16

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for i32

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl TryFrom<ScalarImpl> for i64

source§

type Error = ArrayError

The type returned in the event of a conversion error.
source§

fn try_from(val: ScalarImpl) -> ArrayResult<Self>

Performs the conversion.
source§

impl Eq for ScalarImpl

source§

impl !PartialOrd for ScalarImpl

source§

impl StructuralPartialEq for ScalarImpl

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> BorrowToSql for T
where T: ToSql,

§

fn borrow_to_sql(&self) -> &dyn ToSql

Returns a reference to self as a ToSql trait object.
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> FutureExt for T

§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

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

source§

fn relabel( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, ) -> RelabeledMetricVec<M>

source§

fn relabel_n( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, relabel_num: usize, ) -> RelabeledMetricVec<M>

source§

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> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToOwnedDatum for T
where T: Into<ScalarImpl>,

source§

fn to_owned_datum(self) -> Option<ScalarImpl>

Convert the datum to an owned Datum.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

§

impl<T> DevConfig for T
where T: Send + Sync + 'static + Debug,

§

impl<T> FromSqlOwned for T
where T: for<'a> FromSql<'a>,

§

impl<T> Key for T
where T: Send + Sync + 'static + Hash + Eq,

source§

impl<T> LruKey for T
where T: Eq + Send + Hash,

source§

impl<T> LruValue for T
where T: Send + Sync,

§

impl<T> Value for T
where T: Send + Sync + 'static,