pub struct EncodedDepthImage {
pub blob: Option<SerializedComponentBatch>,
pub media_type: Option<SerializedComponentBatch>,
pub meter: Option<SerializedComponentBatch>,
pub colormap: Option<SerializedComponentBatch>,
pub depth_range: Option<SerializedComponentBatch>,
pub point_fill_ratio: Option<SerializedComponentBatch>,
pub draw_order: Option<SerializedComponentBatch>,
}Expand description
Archetype: A depth image encoded with a codec (e.g. RVL or PNG).
Rerun also supports uncompressed depth images with the archetypes.DepthImage.
⚠️ This type is unstable and may change significantly in a way that the data won’t be backwards compatible.
§Example
§Encoded depth image
use rerun::external::anyhow;
fn main() -> anyhow::Result<()> {
let args = _args;
let Some(path) = args.get(1) else {
anyhow::bail!("Usage: {} <path_to_depth_image.[png|rvl]>", args[0]);
};
let rec = rerun::RecordingStreamBuilder::new("rerun_example_encoded_depth_image").spawn()?;
let depth_blob = std::fs::read(path)?;
let encoded_depth = rerun::EncodedDepthImage::new(depth_blob)
.with_media_type(if path.ends_with(".png") {
rerun::components::MediaType::PNG
} else {
rerun::components::MediaType::RVL
})
.with_meter(0.001_f32);
rec.log("depth/encoded", &encoded_depth)?;
Ok(())
}
Fields§
§blob: Option<SerializedComponentBatch>The encoded depth payload.
Supported are:
- single channel PNG
- RVL with ROS2 metadata (for details see https://github.com/ros-perception/image_transport_plugins/tree/jazzy)
media_type: Option<SerializedComponentBatch>Media type of the blob, e.g.:
application/rvl(RVL-compressed 16-bit)image/png
meter: Option<SerializedComponentBatch>Conversion from native units to meters (e.g. 0.001 for millimeters).
If omitted, the Viewer defaults to 1.0 for floating-point depth formats and 1000.0 for integer formats (millimeters).
colormap: Option<SerializedComponentBatch>Optional colormap for visualization of decoded depth.
depth_range: Option<SerializedComponentBatch>Optional visualization range for depth values.
point_fill_ratio: Option<SerializedComponentBatch>Optional point fill ratio for point-cloud projection.
draw_order: Option<SerializedComponentBatch>Optional 2D draw order.
Implementations§
Source§impl EncodedDepthImage
impl EncodedDepthImage
Sourcepub fn descriptor_blob() -> ComponentDescriptor
pub fn descriptor_blob() -> ComponentDescriptor
Returns the ComponentDescriptor for Self::blob.
The corresponding component is crate::components::Blob.
Sourcepub fn descriptor_media_type() -> ComponentDescriptor
pub fn descriptor_media_type() -> ComponentDescriptor
Returns the ComponentDescriptor for Self::media_type.
The corresponding component is crate::components::MediaType.
Sourcepub fn descriptor_meter() -> ComponentDescriptor
pub fn descriptor_meter() -> ComponentDescriptor
Returns the ComponentDescriptor for Self::meter.
The corresponding component is crate::components::DepthMeter.
Sourcepub fn descriptor_colormap() -> ComponentDescriptor
pub fn descriptor_colormap() -> ComponentDescriptor
Returns the ComponentDescriptor for Self::colormap.
The corresponding component is crate::components::Colormap.
Sourcepub fn descriptor_depth_range() -> ComponentDescriptor
pub fn descriptor_depth_range() -> ComponentDescriptor
Returns the ComponentDescriptor for Self::depth_range.
The corresponding component is crate::components::ValueRange.
Sourcepub fn descriptor_point_fill_ratio() -> ComponentDescriptor
pub fn descriptor_point_fill_ratio() -> ComponentDescriptor
Returns the ComponentDescriptor for Self::point_fill_ratio.
The corresponding component is crate::components::FillRatio.
Sourcepub fn descriptor_draw_order() -> ComponentDescriptor
pub fn descriptor_draw_order() -> ComponentDescriptor
Returns the ComponentDescriptor for Self::draw_order.
The corresponding component is crate::components::DrawOrder.
Source§impl EncodedDepthImage
impl EncodedDepthImage
Sourcepub const NUM_COMPONENTS: usize = 7usize
pub const NUM_COMPONENTS: usize = 7usize
The total number of components in the archetype: 1 required, 2 recommended, 4 optional
Source§impl EncodedDepthImage
impl EncodedDepthImage
Sourcepub fn new(blob: impl Into<Blob>) -> EncodedDepthImage
pub fn new(blob: impl Into<Blob>) -> EncodedDepthImage
Create a new EncodedDepthImage.
Sourcepub fn update_fields() -> EncodedDepthImage
pub fn update_fields() -> EncodedDepthImage
Update only some specific fields of a EncodedDepthImage.
Sourcepub fn clear_fields() -> EncodedDepthImage
pub fn clear_fields() -> EncodedDepthImage
Clear all the fields of a EncodedDepthImage.
Sourcepub fn columns<I>(
self,
_lengths: I,
) -> Result<impl Iterator<Item = SerializedComponentColumn>, SerializationError>
pub fn columns<I>( self, _lengths: I, ) -> Result<impl Iterator<Item = SerializedComponentColumn>, SerializationError>
Partitions the component data into multiple sub-batches.
Specifically, this transforms the existing SerializedComponentBatches data into SerializedComponentColumns
instead, via SerializedComponentBatch::partitioned.
This makes it possible to use RecordingStream::send_columns to send columnar data directly into Rerun.
The specified lengths must sum to the total length of the component batch.
Sourcepub fn columns_of_unit_batches(
self,
) -> Result<impl Iterator<Item = SerializedComponentColumn>, SerializationError>
pub fn columns_of_unit_batches( self, ) -> Result<impl Iterator<Item = SerializedComponentColumn>, SerializationError>
Helper to partition the component data into unit-length sub-batches.
This is semantically similar to calling Self::columns with std::iter::take(1).repeat(n),
where n is automatically guessed.
Sourcepub fn with_blob(self, blob: impl Into<Blob>) -> EncodedDepthImage
pub fn with_blob(self, blob: impl Into<Blob>) -> EncodedDepthImage
The encoded depth payload.
Supported are:
- single channel PNG
- RVL with ROS2 metadata (for details see https://github.com/ros-perception/image_transport_plugins/tree/jazzy)
Sourcepub fn with_many_blob(
self,
blob: impl IntoIterator<Item = impl Into<Blob>>,
) -> EncodedDepthImage
pub fn with_many_blob( self, blob: impl IntoIterator<Item = impl Into<Blob>>, ) -> EncodedDepthImage
This method makes it possible to pack multiple crate::components::Blob in a single component batch.
This only makes sense when used in conjunction with Self::columns. Self::with_blob should
be used when logging a single row’s worth of data.
Sourcepub fn with_media_type(
self,
media_type: impl Into<MediaType>,
) -> EncodedDepthImage
pub fn with_media_type( self, media_type: impl Into<MediaType>, ) -> EncodedDepthImage
Media type of the blob, e.g.:
application/rvl(RVL-compressed 16-bit)image/png
Sourcepub fn with_many_media_type(
self,
media_type: impl IntoIterator<Item = impl Into<MediaType>>,
) -> EncodedDepthImage
pub fn with_many_media_type( self, media_type: impl IntoIterator<Item = impl Into<MediaType>>, ) -> EncodedDepthImage
This method makes it possible to pack multiple crate::components::MediaType in a single component batch.
This only makes sense when used in conjunction with Self::columns. Self::with_media_type should
be used when logging a single row’s worth of data.
Sourcepub fn with_meter(self, meter: impl Into<DepthMeter>) -> EncodedDepthImage
pub fn with_meter(self, meter: impl Into<DepthMeter>) -> EncodedDepthImage
Conversion from native units to meters (e.g. 0.001 for millimeters).
If omitted, the Viewer defaults to 1.0 for floating-point depth formats and 1000.0 for integer formats (millimeters).
Sourcepub fn with_many_meter(
self,
meter: impl IntoIterator<Item = impl Into<DepthMeter>>,
) -> EncodedDepthImage
pub fn with_many_meter( self, meter: impl IntoIterator<Item = impl Into<DepthMeter>>, ) -> EncodedDepthImage
This method makes it possible to pack multiple crate::components::DepthMeter in a single component batch.
This only makes sense when used in conjunction with Self::columns. Self::with_meter should
be used when logging a single row’s worth of data.
Sourcepub fn with_colormap(self, colormap: impl Into<Colormap>) -> EncodedDepthImage
pub fn with_colormap(self, colormap: impl Into<Colormap>) -> EncodedDepthImage
Optional colormap for visualization of decoded depth.
Sourcepub fn with_many_colormap(
self,
colormap: impl IntoIterator<Item = impl Into<Colormap>>,
) -> EncodedDepthImage
pub fn with_many_colormap( self, colormap: impl IntoIterator<Item = impl Into<Colormap>>, ) -> EncodedDepthImage
This method makes it possible to pack multiple crate::components::Colormap in a single component batch.
This only makes sense when used in conjunction with Self::columns. Self::with_colormap should
be used when logging a single row’s worth of data.
Sourcepub fn with_depth_range(
self,
depth_range: impl Into<ValueRange>,
) -> EncodedDepthImage
pub fn with_depth_range( self, depth_range: impl Into<ValueRange>, ) -> EncodedDepthImage
Optional visualization range for depth values.
Sourcepub fn with_many_depth_range(
self,
depth_range: impl IntoIterator<Item = impl Into<ValueRange>>,
) -> EncodedDepthImage
pub fn with_many_depth_range( self, depth_range: impl IntoIterator<Item = impl Into<ValueRange>>, ) -> EncodedDepthImage
This method makes it possible to pack multiple crate::components::ValueRange in a single component batch.
This only makes sense when used in conjunction with Self::columns. Self::with_depth_range should
be used when logging a single row’s worth of data.
Sourcepub fn with_point_fill_ratio(
self,
point_fill_ratio: impl Into<FillRatio>,
) -> EncodedDepthImage
pub fn with_point_fill_ratio( self, point_fill_ratio: impl Into<FillRatio>, ) -> EncodedDepthImage
Optional point fill ratio for point-cloud projection.
Sourcepub fn with_many_point_fill_ratio(
self,
point_fill_ratio: impl IntoIterator<Item = impl Into<FillRatio>>,
) -> EncodedDepthImage
pub fn with_many_point_fill_ratio( self, point_fill_ratio: impl IntoIterator<Item = impl Into<FillRatio>>, ) -> EncodedDepthImage
This method makes it possible to pack multiple crate::components::FillRatio in a single component batch.
This only makes sense when used in conjunction with Self::columns. Self::with_point_fill_ratio should
be used when logging a single row’s worth of data.
Sourcepub fn with_draw_order(
self,
draw_order: impl Into<DrawOrder>,
) -> EncodedDepthImage
pub fn with_draw_order( self, draw_order: impl Into<DrawOrder>, ) -> EncodedDepthImage
Optional 2D draw order.
Sourcepub fn with_many_draw_order(
self,
draw_order: impl IntoIterator<Item = impl Into<DrawOrder>>,
) -> EncodedDepthImage
pub fn with_many_draw_order( self, draw_order: impl IntoIterator<Item = impl Into<DrawOrder>>, ) -> EncodedDepthImage
This method makes it possible to pack multiple crate::components::DrawOrder in a single component batch.
This only makes sense when used in conjunction with Self::columns. Self::with_draw_order should
be used when logging a single row’s worth of data.
Source§impl EncodedDepthImage
impl EncodedDepthImage
Sourcepub fn from_file(filepath: impl AsRef<Path>) -> Result<EncodedDepthImage, Error>
pub fn from_file(filepath: impl AsRef<Path>) -> Result<EncodedDepthImage, Error>
Creates a new depth image from the file contents at path.
The MediaType will first be guessed from the file contents.
Returns an error if the file cannot be read.
Sourcepub fn from_file_contents(bytes: Vec<u8>) -> EncodedDepthImage
pub fn from_file_contents(bytes: Vec<u8>) -> EncodedDepthImage
Construct a depth image given the encoded content of some image file, e.g. a PNG or RVL.
Self::media_type will be guessed from the bytes.
Trait Implementations§
Source§impl Archetype for EncodedDepthImage
impl Archetype for EncodedDepthImage
Source§fn name() -> ArchetypeName
fn name() -> ArchetypeName
rerun.archetypes.Points2D.Source§fn display_name() -> &'static str
fn display_name() -> &'static str
Source§fn required_components() -> Cow<'static, [ComponentDescriptor]>
fn required_components() -> Cow<'static, [ComponentDescriptor]>
Source§fn recommended_components() -> Cow<'static, [ComponentDescriptor]>
fn recommended_components() -> Cow<'static, [ComponentDescriptor]>
Source§fn optional_components() -> Cow<'static, [ComponentDescriptor]>
fn optional_components() -> Cow<'static, [ComponentDescriptor]>
Source§fn all_components() -> Cow<'static, [ComponentDescriptor]>
fn all_components() -> Cow<'static, [ComponentDescriptor]>
Source§fn from_arrow_components(
arrow_data: impl IntoIterator<Item = (ComponentDescriptor, Arc<dyn Array>)>,
) -> Result<EncodedDepthImage, DeserializationError>
fn from_arrow_components( arrow_data: impl IntoIterator<Item = (ComponentDescriptor, Arc<dyn Array>)>, ) -> Result<EncodedDepthImage, DeserializationError>
ComponentDescriptors, deserializes them
into this archetype. Read moreSource§fn all_component_identifiers() -> impl Iterator<Item = ComponentIdentifier>
fn all_component_identifiers() -> impl Iterator<Item = ComponentIdentifier>
Self::all_components to return all component identifiers.Source§fn from_arrow(
data: impl IntoIterator<Item = (Field, Arc<dyn Array>)>,
) -> Result<Self, DeserializationError>where
Self: Sized,
fn from_arrow(
data: impl IntoIterator<Item = (Field, Arc<dyn Array>)>,
) -> Result<Self, DeserializationError>where
Self: Sized,
Source§impl AsComponents for EncodedDepthImage
impl AsComponents for EncodedDepthImage
Source§fn as_serialized_batches(&self) -> Vec<SerializedComponentBatch>
fn as_serialized_batches(&self) -> Vec<SerializedComponentBatch>
SerializedComponentBatches. Read moreSource§impl Clone for EncodedDepthImage
impl Clone for EncodedDepthImage
Source§fn clone(&self) -> EncodedDepthImage
fn clone(&self) -> EncodedDepthImage
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EncodedDepthImage
impl Debug for EncodedDepthImage
Source§impl Default for EncodedDepthImage
impl Default for EncodedDepthImage
Source§fn default() -> EncodedDepthImage
fn default() -> EncodedDepthImage
Source§impl PartialEq for EncodedDepthImage
impl PartialEq for EncodedDepthImage
Source§impl SizeBytes for EncodedDepthImage
impl SizeBytes for EncodedDepthImage
Source§fn heap_size_bytes(&self) -> u64
fn heap_size_bytes(&self) -> u64
self uses on the heap. Read moreSource§fn total_size_bytes(&self) -> u64
fn total_size_bytes(&self) -> u64
self in bytes, accounting for both stack and heap space.Source§fn stack_size_bytes(&self) -> u64
fn stack_size_bytes(&self) -> u64
self on the stack, in bytes. Read moreimpl ArchetypeReflectionMarker for EncodedDepthImage
impl StructuralPartialEq for EncodedDepthImage
Auto Trait Implementations§
impl Freeze for EncodedDepthImage
impl !RefUnwindSafe for EncodedDepthImage
impl Send for EncodedDepthImage
impl Sync for EncodedDepthImage
impl Unpin for EncodedDepthImage
impl !UnwindSafe for EncodedDepthImage
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<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::RequestSource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
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.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
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.