pub struct ArrowSession { /* private fields */ }Expand description
Session-scoped registry of Arrow extension plugins.
The session checks inferred fields and the dtypes of successful plugin imports. See
ArrowExportVTable and ArrowImportVTable for the conversion contracts. The importing
session must register the owning dtype and any Arrow plugins used for the conversion.
An Arrow reader observes exported values before any Vortex importer runs.
ArrowExportVTable::execute_arrow defines the null and comparison rules for those values.
Explicit export targets may request a different dtype. Unknown Vortex IDs import as storage.
A plugin converts one Vortex extension type to and from an Arrow extension type. The crate that
owns the type registers its plugin, as vortex-uuid does. Temporal types need no plugin,
because Arrow has native types for them.
Every ArrowSession belongs to a VortexSession, which creates it on first use of
ArrowSessionExt::arrow. An export takes no session, because it uses the session of its
ExecutionCtx (see ExecuteArrowExt). So one export cannot mix the plugins of two sessions.
An extension type without a plugin exports as its storage, and the Arrow field records the type
so that an import can restore it. ARROW:extension:name holds the Vortex ID, and
ARROW:extension:metadata holds the metadata in base64, since Arrow metadata must be UTF-8
(ext_metadata describes the format). DataFusion compares this metadata when it merges file
schemas, so ExtDTypeRef::serialize_metadata must give equal bytes for equal types.
A caller can also export an array to a field that names its Vortex ID, such as a field from
Self::to_arrow_storage_field. The export then checks that the field describes the type of
the array. Registered importers read the field’s metadata in the plugin’s format and must infer
the same dtype apart from outer nullability. Without a matching importer, the metadata must
decode to the bytes returned by ExtDTypeRef::serialize_metadata. Its Arrow type must also
import as the storage type (or as the type itself, such as an Arrow timestamp). Nested extension
types count as their storage types in this check, and the export checks each nested field when
it reaches it. Without these checks, values could silently change meaning, such as milliseconds
that read back as seconds. For the same reason, an extension array cannot export to a field that
names a different known Vortex ID.
On import, the plugins run first. If none applies, a field that names a known Vortex ID imports
as that type over its storage, and a field with any other name imports as plain storage. A
Vortex ID is known if its type is registered in the DTypeSession of the same
VortexSession, even after the first use of the Arrow session. The Arrow session keeps the
registry of the DTypeSession that existed at its first use, so it does not see a new
DTypeSession that later replaces it through VortexSession::register.
A map’s entries field only groups the key and value fields. Both dtype and array imports ignore its extension name so it remains a plain struct. Key and value fields still reach their importers.
Implementations§
Source§impl ArrowSession
impl ArrowSession
Sourcepub fn register_extension<V: ArrowExtVTable>(&self, vtable: V)
pub fn register_extension<V: ArrowExtVTable>(&self, vtable: V)
Registers both directions of a typed extension using the vtable’s metadata policy.
The adapter handles Vortex metadata encoding, decoding, and target checks. The session verifies complete dtype identity for both typed and raw plugins.
Source§impl ArrowSession
impl ArrowSession
Sourcepub fn register_exporter(&self, exporter: ArrowExportVTableRef)
pub fn register_exporter(&self, exporter: ArrowExportVTableRef)
Register an ArrowExportVTable under its target Arrow extension Id (for dispatch)
and its source Vortex extension Id (for schema inference).
Sourcepub fn register_importer(&self, importer: ArrowImportVTableRef)
pub fn register_importer(&self, importer: ArrowImportVTableRef)
Register an ArrowImportVTable under its source Arrow extension name.
Sourcepub fn to_arrow_field(&self, name: &str, dtype: &DType) -> VortexResult<Field>
pub fn to_arrow_field(&self, name: &str, dtype: &DType) -> VortexResult<Field>
Build the Arrow Field for a Vortex DType.
For DType::Extensions, plugins registered against the extension’s Id
are tried in registration order; the first plugin to return Some(field) wins.
An extension type without a plugin exports through Self::to_arrow_storage_field.
Sourcepub fn to_arrow_schema(&self, dtype: &DType) -> VortexResult<Schema>
pub fn to_arrow_schema(&self, dtype: &DType) -> VortexResult<Schema>
Build the Arrow Schema for a Vortex top-level DType::Struct, dispatching
extension fields through registered export plugins for inference. Nested
extensions are preserved via Self::to_arrow_field.
Sourcepub fn to_arrow_datatype(&self, dtype: &DType) -> VortexResult<DataType>
pub fn to_arrow_datatype(&self, dtype: &DType) -> VortexResult<DataType>
Returns the Arrow DataType that best corresponds to the given Vortex DType,
dispatching DType::Extensions through registered export plugins.
A DataType has no field metadata, so this fails for the same types that
Self::default_arrow_export_field rejects. Use Self::to_arrow_field to keep the
extension type.
Sourcepub fn default_arrow_export_field(&self, dtype: &DType) -> VortexResult<Field>
pub fn default_arrow_export_field(&self, dtype: &DType) -> VortexResult<Field>
Returns the Arrow Field that an export without a target field uses.
This is Self::to_arrow_field with an empty name, except that it fails for a top-level
extension type that does not have a plugin. The caller of an export without a target keeps
only the Arrow array or its DataType, not this field. So the extension metadata on the
field would be lost, and with it the extension type. A nested extension type is fine,
because its child Field keeps the metadata. A top-level extension type with a plugin
still exports, but it loses its extension name, as it did before (#11286).
Sourcepub fn to_arrow_storage_field(
&self,
name: &str,
ext_dtype: &ExtDTypeRef,
) -> VortexResult<Field>
pub fn to_arrow_storage_field( &self, name: &str, ext_dtype: &ExtDTypeRef, ) -> VortexResult<Field>
Returns the storage field of ext_dtype, with field metadata that holds the extension type
(ext_metadata describes the format).
A type with its own Arrow type can also export to this field, for example to export a
timestamp column as Int64 and import it back as a timestamp.
Fails if the storage field already has an Arrow extension name.
Sourcepub fn exports_extension_storage(
&self,
ext_dtype: &ExtDTypeRef,
field: &Field,
) -> bool
pub fn exports_extension_storage( &self, ext_dtype: &ExtDTypeRef, field: &Field, ) -> bool
Returns whether an export of ext_dtype to field produces exactly its storage.
A caller can use the answer to plan reads into the storage without the array. The export
produces the storage only when field names the Vortex ID of ext_dtype and passes the
checks that the ArrowSession docs describe for such a field. A registered exporter can
produce any data for the same field, so a name with an exporter gives false.
The answer covers only the top level of field. Each storage child exports to its own
field, which can name another exporter. Self::exports_without_plugins checks for
exporters at every depth.
Sourcepub fn exports_without_plugins(&self, field: &Field) -> bool
pub fn exports_without_plugins(&self, field: &Field) -> bool
Returns whether exporting to field uses only the built-in conversions at every depth.
A registered exporter can choose the Arrow representation even if the field also supports a built-in conversion. The answer is conservative because the plugin can defer at runtime.
Sourcepub fn imports_without_plugins(&self, field: &Field) -> bool
pub fn imports_without_plugins(&self, field: &Field) -> bool
Returns whether importing from field uses only the built-in conversions at every depth.
A registered importer can transform values before Vortex sees them, even if the outer field has no extension name.
Sourcepub fn from_arrow_field(&self, field: &Field) -> VortexResult<DType>
pub fn from_arrow_field(&self, field: &Field) -> VortexResult<DType>
Build the Vortex DType for an Arrow Field.
A DataType::Dictionary field converts as its value field with the same metadata.
Plugins registered against the field’s Arrow extension name are tried in
registration order; the first plugin to return Some(dtype) wins. If no plugin is
registered, or every plugin defers the field as ArrowImportVTable allows, the builtin
arrow.parquet.variant extension maps to DType::Variant, and any other field converts
through Self::from_arrow_datatype so extension metadata on nested element/struct
fields is preserved.
If no plugin recognizes field and its extension name is a known Vortex ID, the result is
that extension type over the converted storage (see ArrowSession).
Sourcepub fn from_arrow_datatype(
&self,
data_type: &DataType,
nullability: Nullability,
) -> VortexResult<DType>
pub fn from_arrow_datatype( &self, data_type: &DataType, nullability: Nullability, ) -> VortexResult<DType>
Build the Vortex DType for an Arrow DataType.
Recurses into container types (DataType::List family, DataType::FixedSizeList,
DataType::Struct, DataType::Map, DataType::RunEndEncoded) via
Self::from_arrow_field so extension metadata on nested fields dispatches through
registered import plugins. Leaf types use the canonical Arrow → Vortex mapping.
DataType::Dictionary is a partial exception: Arrow models its values as a bare
DataType rather than a Field, so the values themselves cannot carry an extension
name. Fields nested inside that data type still do, and are dispatched normally.
Sourcepub fn from_arrow_fields(&self, fields: &Fields) -> VortexResult<StructFields>
pub fn from_arrow_fields(&self, fields: &Fields) -> VortexResult<StructFields>
Build Vortex StructFields for Arrow Fields, dispatching each field through
Self::from_arrow_field.
Sourcepub fn from_arrow_schema(&self, schema: &Schema) -> VortexResult<DType>
pub fn from_arrow_schema(&self, schema: &Schema) -> VortexResult<DType>
Sourcepub fn from_arrow_record_batch(
&self,
batch: RecordBatch,
schema: &Schema,
) -> VortexResult<ArrayRef>
pub fn from_arrow_record_batch( &self, batch: RecordBatch, schema: &Schema, ) -> VortexResult<ArrayRef>
Decode an Arrow RecordBatch into a Vortex struct array, dispatching each
extension column through its registered import plugin.
schema is the authoritative Arrow schema used for dispatch — the columns are
consumed positionally. Pass an external schema (rather than relying on
batch.schema()) when upstream DataFusion plumbing may have stripped Field-level
extension metadata from the runtime RecordBatch.
Sourcepub fn from_arrow_array<'a>(
&self,
array: ArrowArrayRef,
field: impl IntoArrowField<'a>,
) -> VortexResult<ArrayRef>
pub fn from_arrow_array<'a>( &self, array: ArrowArrayRef, field: impl IntoArrowField<'a>, ) -> VortexResult<ArrayRef>
Decode an Arrow array into a Vortex array.
Pass a Field to supply the Arrow schema and its extension metadata. Pass a bool
or Nullability to use the array’s data type and set the root nullability. See
IntoArrowField.
For a field with a registered Arrow extension name, the session tries its importers in
registration order until one handles the array or all return ArrowImport::Unsupported.
Nested fields also reach their importers when the session converts a container.
If no plugin imports the array and the extension name of field is a known Vortex ID,
the import wraps the converted storage in that extension type (see ArrowSession).
Each level follows its own declared nullability. Nullable levels keep their validity.
Non-nullable storage leaves fill nulls with the zero of their type, such as 0, false,
or "". Non-nullable containers drop their validity and keep their contents, so a null
list with no elements becomes an empty list. Each child follows its own field, even under
a null parent row.
The fill uses the storage type’s zero even when it falls outside the extension’s domain.
For example, a JSON slot can become "".
A non-nullable dictionary imports null keys as references to entry zero. If there are keys but no values, the import adds one entry by importing a single null Arrow row of the value type under these rules. So a leaf value is its zero, and a struct value is a valid row whose nullable fields stay null. A run-end encoded array applies the requested nullability to its run values.
§Errors
Returns an error for unsupported Arrow types, including Arrow Null with a non-nullable
request, or if an import plugin rejects the field or array.
Sourcepub fn from_arrow_storage(
&self,
array: ArrowArrayRef,
ext: &ExtDTypeRef,
) -> VortexResult<ArrayRef>
pub fn from_arrow_storage( &self, array: ArrowArrayRef, ext: &ExtDTypeRef, ) -> VortexResult<ArrayRef>
Import array, which holds the Arrow form of the storage of ext, as an array of ext.
Use this when the Arrow layout matches the Vortex storage layout. The storage dtype
supplies the nullability of each level for the rules in Self::from_arrow_array.
§Errors
Returns an error if the Arrow layout and the storage dtype differ in field names, field order, or types, or if converting the storage fails.
Trait Implementations§
Source§impl Clone for ArrowSession
impl Clone for ArrowSession
Source§impl Debug for ArrowSession
impl Debug for ArrowSession
Source§impl SessionVar for ArrowSession
impl SessionVar for ArrowSession
Auto Trait Implementations§
impl !RefUnwindSafe for ArrowSession
impl !UnwindSafe for ArrowSession
impl Forget for ArrowSession
impl Freeze for ArrowSession
impl Move for ArrowSession
impl Send for ArrowSession
impl Sync for ArrowSession
impl Unpin for ArrowSession
impl UnsafeUnpin for ArrowSession
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.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> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§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 moreSource§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 moreSource§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
Source§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
Source§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.Source§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.Source§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> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.