pub struct VisionRuntime { /* private fields */ }vision only.Expand description
Routes vision calls to backends, prepares and releases their images, meters them, maps their answers to source pixels and escalates.
§Example
use std::sync::Arc;
use adk_vision::{DeterministicEditor, VisionRuntime};
let runtime = VisionRuntime::builder()
.editor(Arc::new(DeterministicEditor::new()))
.build()
.unwrap();
assert!(runtime.backends().iter().any(|id| id.as_str() == "deterministic-editor"));Implementations§
Source§impl VisionRuntime
impl VisionRuntime
Sourcepub async fn detect(
&self,
cx: &VisionCx,
image: &SourceImage,
query: &DetectQuery,
) -> Result<VisionOutput<Vec<Region>>, VisionError>
pub async fn detect( &self, cx: &VisionCx, image: &SourceImage, query: &DetectQuery, ) -> Result<VisionOutput<Vec<Region>>, VisionError>
Detects objects in a source image on the detection route.
§Errors
The route’s, the gate’s or the backend’s error; see detect_with.
Sourcepub async fn detect_with(
&self,
cx: &VisionCx,
image: &SourceImage,
query: &DetectQuery,
options: &CallOptions,
) -> Result<VisionOutput<Vec<Region>>, VisionError>
pub async fn detect_with( &self, cx: &VisionCx, image: &SourceImage, query: &DetectQuery, options: &CallOptions, ) -> Result<VisionOutput<Vec<Region>>, VisionError>
Detects objects with per-call options. Regions come back in source pixels; a route with an escalation crops each uncertain region, plus margin, and sends only that.
§Errors
VisionError::BackendNotFound, the egress gate’s refusals for a remote backend,
a budget or kill-switch refusal before the request, VisionError::Cancelled, or
the backend’s error.
Sourcepub async fn segment(
&self,
cx: &VisionCx,
image: &SourceImage,
prompts: &[SegmentPrompt],
) -> Result<VisionOutput<Vec<Region>>, VisionError>
pub async fn segment( &self, cx: &VisionCx, image: &SourceImage, prompts: &[SegmentPrompt], ) -> Result<VisionOutput<Vec<Region>>, VisionError>
Segments a source image on the segmentation route. Prompts are in source pixels.
§Errors
As detect_with.
Sourcepub async fn segment_with(
&self,
cx: &VisionCx,
image: &SourceImage,
prompts: &[SegmentPrompt],
options: &CallOptions,
) -> Result<VisionOutput<Vec<Region>>, VisionError>
pub async fn segment_with( &self, cx: &VisionCx, image: &SourceImage, prompts: &[SegmentPrompt], options: &CallOptions, ) -> Result<VisionOutput<Vec<Region>>, VisionError>
Segments with per-call options.
§Errors
As detect_with, and VisionError::Unsupported for a mask
prompt to a backend whose frame has no raster.
Sourcepub async fn read(
&self,
cx: &VisionCx,
page: &SourceImage,
read: &ReadOptions,
) -> Result<VisionOutput<DocumentPage>, VisionError>
pub async fn read( &self, cx: &VisionCx, page: &SourceImage, read: &ReadOptions, ) -> Result<VisionOutput<DocumentPage>, VisionError>
Sourcepub async fn read_with(
&self,
cx: &VisionCx,
page: &SourceImage,
read: &ReadOptions,
options: &CallOptions,
) -> Result<VisionOutput<DocumentPage>, VisionError>
pub async fn read_with( &self, cx: &VisionCx, page: &SourceImage, read: &ReadOptions, options: &CallOptions, ) -> Result<VisionOutput<DocumentPage>, VisionError>
Reads with per-call options. A block below a low-confidence trigger is re-read from
its crop by the escalation backend, which replaces its text with escalatedFrom
provenance on its region.
§Errors
As detect_with.
Sourcepub async fn describe(
&self,
cx: &VisionCx,
images: &[&SourceImage],
spec: &DescribeSpec,
) -> Result<VisionOutput<Description>, VisionError>
pub async fn describe( &self, cx: &VisionCx, images: &[&SourceImage], spec: &DescribeSpec, ) -> Result<VisionOutput<Description>, VisionError>
Sourcepub async fn describe_with(
&self,
cx: &VisionCx,
images: &[&SourceImage],
spec: &DescribeSpec,
options: &CallOptions,
) -> Result<VisionOutput<Description>, VisionError>
pub async fn describe_with( &self, cx: &VisionCx, images: &[&SourceImage], spec: &DescribeSpec, options: &CallOptions, ) -> Result<VisionOutput<Description>, VisionError>
Describes with per-call options. On a trigger the escalation backend answers the
same request, and its answer replaces the primary’s with escalatedFrom provenance.
§Errors
As detect_with, and VisionError::InvalidInput for no
image.
Sourcepub async fn embed_images(
&self,
cx: &VisionCx,
images: &[&SourceImage],
options: &CallOptions,
) -> Result<VisionOutput<Vec<Vec<f32>>>, VisionError>
pub async fn embed_images( &self, cx: &VisionCx, images: &[&SourceImage], options: &CallOptions, ) -> Result<VisionOutput<Vec<Vec<f32>>>, VisionError>
Embeds source images with the embedding route’s backend.
§Errors
As detect_with, and VisionError::Parse when the backend
returns the wrong number of vectors or vectors outside its space’s dimensions.
Sourcepub async fn embed_texts(
&self,
cx: &VisionCx,
texts: &[&str],
options: &CallOptions,
) -> Result<VisionOutput<Vec<Vec<f32>>>, VisionError>
pub async fn embed_texts( &self, cx: &VisionCx, texts: &[&str], options: &CallOptions, ) -> Result<VisionOutput<Vec<Vec<f32>>>, VisionError>
Embeds texts with the embedding route’s backend, into the same space as its images.
§Errors
As embed_images.
Sourcepub async fn edit(
&self,
cx: &VisionCx,
image: &SourceImage,
operation: &EditOp,
options: &CallOptions,
) -> Result<VisionOutput<Edited>, VisionError>
pub async fn edit( &self, cx: &VisionCx, image: &SourceImage, operation: &EditOp, options: &CallOptions, ) -> Result<VisionOutput<Edited>, VisionError>
Edits a source image with the edit route’s backend and stores the result with
Provenance::Derived, under the context’s media scope.
§Errors
VisionError::InvalidInput without a media store or a media scope, as
detect_with otherwise.
Source§impl VisionRuntime
impl VisionRuntime
Sourcepub async fn analyze_video(
&self,
cx: &VisionCx,
video: VideoSource<'_>,
request: &VideoRequest,
) -> Result<VisionOutput<VideoAnalysis>, VisionError>
pub async fn analyze_video( &self, cx: &VisionCx, video: VideoSource<'_>, request: &VideoRequest, ) -> Result<VisionOutput<VideoAnalysis>, VisionError>
Sourcepub async fn analyze_video_with(
&self,
cx: &VisionCx,
video: VideoSource<'_>,
request: &VideoRequest,
options: &CallOptions,
) -> Result<VisionOutput<VideoAnalysis>, VisionError>
pub async fn analyze_video_with( &self, cx: &VisionCx, video: VideoSource<'_>, request: &VideoRequest, options: &CallOptions, ) -> Result<VisionOutput<VideoAnalysis>, VisionError>
Analyses a video with per-call options.
The call opens one hold before anything is prepared (V-I6): the frames the backend
analyses as UsageUnit::Frames, at its per-frame price (with its per-request
minimum), at zero cost on the device, or up to its own estimate for a token-billed
backend. Sampled frames are prepared as images are, released one by one through the
egress gate for a remote backend; a clip is released through
EgressGate::release_clip as data class video
unless the options name another. Track regions come back in source pixels of the
clip or of their frame, with their track identifiers.
§Errors
VisionError::InvalidInput for a call with no clip and no frame, and the errors
of detect_with.
Source§impl VisionRuntime
impl VisionRuntime
Sourcepub fn builder() -> VisionRuntimeBuilder
pub fn builder() -> VisionRuntimeBuilder
A builder with no backend.
Sourcepub fn embedding_space(
&self,
options: &CallOptions,
) -> Result<EmbeddingSpace, VisionError>
pub fn embedding_space( &self, options: &CallOptions, ) -> Result<EmbeddingSpace, VisionError>
The embedding space a call with options embeds into: the space of its embedding
route’s backend. A visual memory collection records the space it was built in and
refuses vectors of any other.
§Errors
VisionError::BackendNotFound when no embedder serves the call.
Sourcepub fn descriptor(
&self,
task: VisionTask,
id: &BackendId,
) -> Option<&BackendDescriptor>
pub fn descriptor( &self, task: VisionTask, id: &BackendId, ) -> Option<&BackendDescriptor>
The descriptor of a backend registered for task.
Sourcepub fn route(
&self,
task: VisionTask,
options: &CallOptions,
) -> Result<Route, VisionError>
pub fn route( &self, task: VisionTask, options: &CallOptions, ) -> Result<Route, VisionError>
The route a call of task with options takes: the call’s own route, the task’s
configured route, or the task’s default backend (the first on-device one registered,
else the first remote one).
§Errors
VisionError::BackendNotFound when no backend serves the task, and
VisionError::InvalidInput for a call route that names an unknown backend.
Sourcepub fn egress_gate(&self) -> Option<&EgressGate>
pub fn egress_gate(&self) -> Option<&EgressGate>
The egress gate, if one is installed.
The egress gate as a shared handle, for an ImagePrivacyGuardrail that releases
through the same gate.
Sourcepub fn media_store(&self) -> Option<&MediaStore>
pub fn media_store(&self) -> Option<&MediaStore>
The media store, if one is installed.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VisionRuntime
impl !UnwindSafe for VisionRuntime
impl Forget for VisionRuntime
impl Freeze for VisionRuntimewhere
*const u8 is !null: Freeze,
PhantomData<(BackendDescriptor, Backend<dyn Detector, dyn Detector<ReleasedImage>>)>: Freeze,
PhantomData<(BackendDescriptor, Backend<dyn Segmenter, dyn Segmenter<ReleasedImage>>)>: Freeze,
PhantomData<(BackendDescriptor, Backend<dyn DocumentReader, dyn DocumentReader<ReleasedImage>>)>: Freeze,
PhantomData<(BackendDescriptor, Backend<dyn Embedder, dyn Embedder<ReleasedImage>>)>: Freeze,
PhantomData<(BackendDescriptor, Backend<dyn Describer, dyn Describer<ReleasedImage>>)>: Freeze,
PhantomData<(BackendDescriptor, Backend<dyn Editor, dyn Editor<ReleasedImage>>)>: Freeze,
PhantomData<(BackendDescriptor, Backend<dyn VideoAnalyzer, dyn VideoAnalyzer<ReleasedImage>>)>: Freeze,
*const LeafNode<VisionTask, Route> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(VisionTask, Route)>>: Freeze,
*const ArcInner<EgressGate> is !null: Freeze,
PhantomData<ArcInner<EgressGate>>: Freeze,
*const ArcInner<dyn ArtifactService> is !null: Freeze,
PhantomData<ArcInner<dyn ArtifactService>>: Freeze,
impl Move for VisionRuntime
impl Send for VisionRuntimewhere
RawVecInner: Send,
Arc<dyn Detector>: Send,
Arc<dyn Detector<ReleasedImage>>: Send,
Arc<dyn Segmenter>: Send,
Arc<dyn Segmenter<ReleasedImage>>: Send,
Arc<dyn DocumentReader>: Send,
Arc<dyn DocumentReader<ReleasedImage>>: Send,
Arc<dyn Embedder>: Send,
Arc<dyn Embedder<ReleasedImage>>: Send,
Arc<dyn Describer>: Send,
Arc<dyn Describer<ReleasedImage>>: Send,
Arc<dyn Editor>: Send,
Arc<dyn Editor<ReleasedImage>>: Send,
Arc<dyn VideoAnalyzer>: Send,
Arc<dyn VideoAnalyzer<ReleasedImage>>: Send,
NodeRef<Owned, VisionTask, Route, LeafOrInternal>: Send,
BoxRaw<(VisionTask, Route)>: Send,
Arc<EgressGate>: Send,
Arc<dyn ArtifactService>: Send,
impl Sync for VisionRuntimewhere
RawVecInner: Sync,
Arc<dyn Detector>: Sync,
Arc<dyn Detector<ReleasedImage>>: Sync,
Arc<dyn Segmenter>: Sync,
Arc<dyn Segmenter<ReleasedImage>>: Sync,
Arc<dyn DocumentReader>: Sync,
Arc<dyn DocumentReader<ReleasedImage>>: Sync,
Arc<dyn Embedder>: Sync,
Arc<dyn Embedder<ReleasedImage>>: Sync,
Arc<dyn Describer>: Sync,
Arc<dyn Describer<ReleasedImage>>: Sync,
Arc<dyn Editor>: Sync,
Arc<dyn Editor<ReleasedImage>>: Sync,
Arc<dyn VideoAnalyzer>: Sync,
Arc<dyn VideoAnalyzer<ReleasedImage>>: Sync,
NodeRef<Owned, VisionTask, Route, LeafOrInternal>: Sync,
BoxRaw<(VisionTask, Route)>: Sync,
Arc<EgressGate>: Sync,
Arc<dyn ArtifactService>: Sync,
impl Unpin for VisionRuntimewhere
*const u8 is !null: Unpin,
Arc<dyn Detector>: Unpin,
Arc<dyn Detector<ReleasedImage>>: Unpin,
Arc<dyn Segmenter>: Unpin,
Arc<dyn Segmenter<ReleasedImage>>: Unpin,
Arc<dyn DocumentReader>: Unpin,
Arc<dyn DocumentReader<ReleasedImage>>: Unpin,
Arc<dyn Embedder>: Unpin,
Arc<dyn Embedder<ReleasedImage>>: Unpin,
Arc<dyn Describer>: Unpin,
Arc<dyn Describer<ReleasedImage>>: Unpin,
Arc<dyn Editor>: Unpin,
Arc<dyn Editor<ReleasedImage>>: Unpin,
Arc<dyn VideoAnalyzer>: Unpin,
Arc<dyn VideoAnalyzer<ReleasedImage>>: Unpin,
*const LeafNode<VisionTask, Route> is !null: Unpin,
Box<(VisionTask, Route)>: Unpin,
Arc<EgressGate>: Unpin,
Arc<dyn ArtifactService>: Unpin,
impl UnsafeUnpin for VisionRuntimewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(BackendDescriptor, Backend<dyn Detector, dyn Detector<ReleasedImage>>)>: UnsafeUnpin,
PhantomData<(BackendDescriptor, Backend<dyn Segmenter, dyn Segmenter<ReleasedImage>>)>: UnsafeUnpin,
PhantomData<(BackendDescriptor, Backend<dyn DocumentReader, dyn DocumentReader<ReleasedImage>>)>: UnsafeUnpin,
PhantomData<(BackendDescriptor, Backend<dyn Embedder, dyn Embedder<ReleasedImage>>)>: UnsafeUnpin,
PhantomData<(BackendDescriptor, Backend<dyn Describer, dyn Describer<ReleasedImage>>)>: UnsafeUnpin,
PhantomData<(BackendDescriptor, Backend<dyn Editor, dyn Editor<ReleasedImage>>)>: UnsafeUnpin,
PhantomData<(BackendDescriptor, Backend<dyn VideoAnalyzer, dyn VideoAnalyzer<ReleasedImage>>)>: UnsafeUnpin,
*const LeafNode<VisionTask, Route> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(VisionTask, Route)>>: UnsafeUnpin,
*const ArcInner<EgressGate> is !null: UnsafeUnpin,
PhantomData<ArcInner<EgressGate>>: UnsafeUnpin,
*const ArcInner<dyn ArtifactService> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ArtifactService>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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> 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 moreimpl<T> MaybeSend for Twhere
T: Send,
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,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.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.