Skip to main content

AggregateRuntime

Struct AggregateRuntime 

Source
pub(crate) struct AggregateRuntime {
    op: BoundAggregate,
    schema: Arc<SeriesSchema>,
    fold: Fold,
    annotations: Option<PromqlAnnotationCollector>,
    accumulator: Option<FloatAggregator>,
    retained: Option<QuantileInput>,
    merger: Option<FloatMerger>,
    state_schema: Option<Arc<AggregateStateSchema>>,
    pub(crate) computed: bool,
}
Expand description

One aggregate node’s states, from the first chunk it is handed to the series it finishes with.

Fields§

§op: BoundAggregate

What the node computes, as the tree bound it: the kind it folds by and the stage it reports.

§schema: Arc<SeriesSchema>

The layout its input and output share: the fields every chunk has and the grid they are addressed on. A Complete aggregate neither adds nor drops a field, and it evaluates on its input’s grid, so one schema describes both sides.

§fold: Fold

What this node keeps between chunks, as the runtime’s own enum, so the chunk check can ask what the operation accepts.

§annotations: Option<PromqlAnnotationCollector>

The query’s annotation collector, once the driver installed it. Only an operation that skips histogram samples has anything to say, and it says it once.

§accumulator: Option<FloatAggregator>

The fold. None once Self::compute has taken it, which is also what says the node has nothing left to fold into.

§retained: Option<QuantileInput>

The whole input of a quantile aggregate. None for every other kind, and None once the kernel has answered from it.

§merger: Option<FloatMerger>§state_schema: Option<Arc<AggregateStateSchema>>§computed: bool

Whether the fold has been finished and its series handed over. A node computes once: a second pull finds the series it queued rather than a fold that ran again.

The driver reads this to decide whether the node settled: an aggregate answers only once its fold has run, so a child with nothing left to hand over is not an answer.

Implementations§

Source§

impl AggregateRuntime

Source

fn aggregate_name(&self) -> &'static str

The PromQL name of the aggregate this node folds, as an annotation names it.

Source

pub(crate) fn set_annotations(&mut self, collector: PromqlAnnotationCollector)

Gives this node the query’s collector, so it can report what it skipped.

Source

fn describe(&self) -> String

What this node computes, for a rejection that has to say what it refused.

It names the kind this node computes, which distinguishes it from another node in the tree.

Source

pub(crate) fn new( op: BoundAggregate, schema: Arc<SeriesSchema>, buffer: &mut NodeBuffer, ) -> Result<Self>

The states of a Complete aggregate over schema.

A stage other than Complete and a kind without a supported kernel are refused here, before a single chunk is folded: a node this runtime cannot compute must not start, because a partial answer would be one the caller never asked for. The rejection names what was found, so a reader can tell a tree this runtime cannot run from one it cannot run correctly.

Source

fn new_quantile( op: BoundAggregate, quantile: Option<f64>, schema: Arc<SeriesSchema>, buffer: &mut NodeBuffer, ) -> Result<Self>

The states of a Complete quantile aggregate over schema, whose φ is quantile.

A quantile is answered from its group’s whole sample set, so a stage that saw only part of a group would answer the quantile of a subset of it: the quantile of two partitions’ quantiles is not the quantile of their union, and there is no state to export or merge either. That is a property of the operation and not of this runtime, so what refuses a Partial or a Final one is the tree’s own check – aggregate_state_binding has no binding for a quantile, which crate::native::plan::NativeNode::validate reports, and crate::native::split declines a quantile for the same reason – and this starts the one stage that is left.

The same check is what puts the input on a grid: a Complete aggregate is validated to answer its input’s values on its input’s grid, and schema is the layout the node reports, so the grid the kernel reads its parameter on is there before this runs.

Source

pub(crate) fn new_parameterized( op: BoundAggregate, schema: Arc<SeriesSchema>, buffer: &mut NodeBuffer, ) -> Result<Self>

The states of a Complete aggregate whose one argument is read at every grid point.

Only quantile has such an argument, and its fold keeps no number of its own: the φ arrives as a series from the node’s parameter child (Self::hold_parameter), so the binding’s constant is not read here at all. Everything else about the fold is the bound one’s – the stage, the layout, and the sample set it keeps until the input ends – which is why this is Self::new_quantile with no constant to fall back on rather than a second kind of state.

Source

pub(crate) fn hold_parameter( &mut self, parameter: Series, buffer: &mut NodeBuffer, ) -> Result<()>

Keeps the φ this node reads at every grid point, in the one unlabelled scalar series its parameter child handed over.

The series is already reserved: it arrives through the driver’s hold_scalar, which grows the same reservation by series_bytes before the chunk is kept, exactly as it does for a broadcast scalar or a topk parameter. Adopting it therefore only settles on what the node holds – which counts it once, from QuantileInput::bytes – rather than growing for a second allocation that was never made: a pool that holds the handoff must not refuse a handoff that allocates nothing.

Source

pub(crate) fn pending(&self, chunk: &EvaluatedChunk) -> usize

What consuming chunk reserves while it is consumed.

A point-wise fold drops the chunk at the end of the call and keeps only its states, so the charge is the chunk’s own bytes – the figure evaluated_bytes reports, which is one pass over the chunk and no state between chunks – and not the operand_chunk_bytes figure a binary operand keeps, which exists because such an operand holds a series for the whole execution and so must count the slices of one buffer instead of the buffer once per chunk.

A quantile keeps the chunk instead, and what it holds is not the chunk alone: it is the allocations the chunk’s samples live in, billed once each, beside the chunk’s own descriptors (Self::retain_quantile, which is chunk_bytes_beside_samples plus unbilled_sample_buffers plus unbilled_tables). That figure is read from the chunk by the retainer itself, before it retains it, so nothing is held before it is reserved. Booking the chunk again here would reserve the same backing twice – once for the chunk being handed over and once for the allocations it points into – which is not a safer estimate but a refusal of an input whose own figure the pool admits.

Source

pub(crate) fn accumulate( &mut self, chunk: EvaluatedChunk, buffer: &mut NodeBuffer, pending: usize, ) -> Result<()>

Folds one chunk into its group.

A chunk that closes its series closes nothing here: a group is not a series, so the last contribution of one member says nothing about the group. The fold keeps its states, which is what makes a group’s answer its whole group’s answer once the input ends.

A quantile keeps the chunk itself, for the same reason: the answer is the group’s sample set, so the samples have to survive until the input does.

Source

fn retain_quantile( &mut self, chunk: EvaluatedChunk, buffer: &mut NodeBuffer, ) -> Result<()>

Keeps one chunk of a quantile’s input until the input ends.

The chunk is kept whole rather than folded: the answer is the φ-quantile of the group’s sample set, and no fixed-width state holds a sample set. What it costs is measured the way a binary operand measures the chunks it retains, and for the same reason: what a quantile keeps is a series for the rest of the execution, so the allocation one buffer its chunks are slices of is counted once rather than once per chunk – and counted at all when the chunk holds a small slice of it, because the allocation is what stays resident. It is the chunk’s own descriptors (chunk_bytes_beside_samples) beside those allocations: the Arrow buffers its samples live in, once each (unbilled_sample_buffers), and the histogram tables they index into, once each (unbilled_tables). The figure is reserved before the push – the push is what makes the node hold it – and the reservation then settles on the whole input, which is what this node holds between chunks.

Source

pub(crate) fn accumulate_state( &mut self, chunk: StateChunk, buffer: &mut NodeBuffer, pending: usize, ) -> Result<()>

Merges one state chunk into this final aggregate.

State reaches a Final from exactly two places and is merged here, once: a producer in this process hands over the groups it folded (StateChunk::Series), and a region’s exported frame is decoded into the row it carries (StateChunk::Row, which a merge scan reads across processes). Both are read as the rows the merge kernel takes, so there is one merge and not one per source; the series form is turned into those rows here, inside the kernel, instead of by a caller that would have to know what the kernel eats.

Source

pub(crate) fn pending_state(&self, chunk: &StateChunk) -> usize

Transient bytes required to consume a state chunk.

Source

pub(crate) fn groups(&self) -> usize

The number of retained groups, for budgeting the output queue backing storage.

A point-wise fold knows its groups because it keyed them. A quantile has not grouped anything: the kernel does that when it answers. What it reports here is therefore the number of members it retained, which is an upper bound – every group has at least one member – and only ever sizes a reservation.

Source

pub(crate) fn compute( &mut self, buffer: &mut NodeBuffer, queue_bytes: usize, ) -> Result<Option<AggregateOutput>>

Finishes the fold and returns one series per group, or None if the fold already ran.

None is what a node reports after it has queued its series: the caller reads them from the queue, exactly as it reads the chunks a binary node queued, so a second pull does not finish a fold whose states are gone.

Source

fn report_evidence(&mut self, evidence: HistogramEvidence)

Reports what the fold or merge recorded about its inputs, once, where the answer is final.

Only a Complete or a Final node reports: a Partial node hands its evidence on in the state it exports, because a point’s outcome is not decided until every partition has been merged and a message cannot be withdrawn once it has been collected. The collector is the node’s own handle, so its children keep theirs.

A poisoned point answers nothing, and the reconciliation its inputs needed is not reported for it: the summary already dropped that bit, which is what makes the message set the same whichever order the partitions arrived in.

Source

fn finish_quantile( &self, input: QuantileInput, buffer: &mut NodeBuffer, queue_bytes: usize, ) -> Result<Vec<Series>>

Answers a quantile from the input it kept, and hands the series over.

The kernel reads q per point from an unlabelled single-field scalar on the aggregate’s own grid, and a point that scalar has no value at is a point with no result. Which scalar that is depends on what the query wrote: the φ the node held from its parameter child, or – for a number bound on the tree – one built over the points the input holds, so that every point it covers carries it. (A point the held series has no sample at is unanswered, exactly as a missing q is in the kernel; scalar(...), the shape that produces one per point, answers NaN rather than no sample, so a statement whose foo holds nothing answers NaN there.)

A built parameter covers the points the input holds and not the window they sit in: the kernel reads q only where a member has a sample, so a sparse input’s parameter is as wide as its rows. A parameter over the envelope would instead allocate every position between two far-apart points – a span sized by the statement’s range rather than by the data it reads, which the pool never admitted. The parameter is booked from the bound its rows give before it exists, and settles on its exact figure once it is built. A held parameter is not built here and needs no such bound: it was reserved when the node adopted it, which is what QuantileInput::bytes counts ever since.

The reservation covers what is held while the kernel runs – the input, that parameter, and the kernel’s workspace – and then settles on the series the kernel answered, exactly as a point-wise fold’s finish does. The input is what stops being held when the kernel is done with it, so it is dropped before the settle rather than when this call returns: a settle read beside a live input would name a set that is never held, and the figure it left behind would be the one the next node’s admission had to fit into.

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
§

impl<T> Any for T
where T: Any,

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

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

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, 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
§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

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

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in [Layered].
§

impl<T> MaybeSend for T
where T: Send,

§

impl<T> MaybeSend for T
where T: Send,

§

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

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> ServiceExt for T

§

fn propagate_header(self, header: HeaderName) -> PropagateHeader<Self>
where Self: Sized,

Propagate a header from the request to the response. Read more
§

fn add_extension<T>(self, value: T) -> AddExtension<Self, T>
where Self: Sized,

Add some shareable value to request extensions. Read more
§

fn map_request_body<F>(self, f: F) -> MapRequestBody<Self, F>
where Self: Sized,

Apply a transformation to the request body. Read more
§

fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>
where Self: Sized,

Apply a transformation to the response body. Read more
§

fn compression(self) -> Compression<Self>
where Self: Sized,

Compresses response bodies. Read more
§

fn decompression(self) -> Decompression<Self>
where Self: Sized,

Decompress response bodies. Read more
§

fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>
where Self: Sized,

High level tracing that classifies responses using HTTP status codes. Read more
§

fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>
where Self: Sized,

High level tracing that classifies responses using gRPC headers. Read more
§

fn follow_redirects(self) -> FollowRedirect<Self>
where Self: Sized,

Follow redirect resposes using the Standard policy. Read more
§

fn sensitive_headers( self, headers: impl IntoIterator<Item = HeaderName>, ) -> SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<Self>>
where Self: Sized,

Mark headers as sensitive on both requests and responses. Read more
§

fn sensitive_request_headers( self, headers: impl IntoIterator<Item = HeaderName>, ) -> SetSensitiveRequestHeaders<Self>
where Self: Sized,

Mark headers as sensitive on requests. Read more
§

fn sensitive_response_headers( self, headers: impl IntoIterator<Item = HeaderName>, ) -> SetSensitiveResponseHeaders<Self>
where Self: Sized,

Mark headers as sensitive on responses. Read more
§

fn override_request_header<M>( self, header_name: HeaderName, make: M, ) -> SetRequestHeader<Self, M>
where Self: Sized,

Insert a header into the request. Read more
§

fn append_request_header<M>( self, header_name: HeaderName, make: M, ) -> SetRequestHeader<Self, M>
where Self: Sized,

Append a header into the request. Read more
§

fn insert_request_header_if_not_present<M>( self, header_name: HeaderName, make: M, ) -> SetRequestHeader<Self, M>
where Self: Sized,

Insert a header into the request, if the header is not already present. Read more
§

fn override_response_header<M>( self, header_name: HeaderName, make: M, ) -> SetResponseHeader<Self, M>
where Self: Sized,

Insert a header into the response. Read more
§

fn append_response_header<M>( self, header_name: HeaderName, make: M, ) -> SetResponseHeader<Self, M>
where Self: Sized,

Append a header into the response. Read more
§

fn insert_response_header_if_not_present<M>( self, header_name: HeaderName, make: M, ) -> SetResponseHeader<Self, M>
where Self: Sized,

Insert a header into the response, if the header is not already present. Read more
§

fn set_request_id<M>( self, header_name: HeaderName, make_request_id: M, ) -> SetRequestId<Self, M>
where Self: Sized, M: MakeRequestId,

Add request id header and extension. Read more
§

fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>
where Self: Sized, M: MakeRequestId,

Add request id header and extension, using x-request-id as the header name. Read more
§

fn propagate_request_id( self, header_name: HeaderName, ) -> PropagateRequestId<Self>
where Self: Sized,

Propgate request ids from requests to responses. Read more
§

fn propagate_x_request_id(self) -> PropagateRequestId<Self>
where Self: Sized,

Propgate request ids from requests to responses, using x-request-id as the header name. Read more
§

fn catch_panic(self) -> CatchPanic<Self, DefaultResponseForPanic>
where Self: Sized,

Catch panics and convert them into 500 Internal Server responses. Read more
§

fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>
where Self: Sized,

Intercept requests with over-sized payloads and convert them into 413 Payload Too Large responses. Read more
§

fn trim_trailing_slash(self) -> NormalizePath<Self>
where Self: Sized,

Remove trailing slashes from paths. Read more
§

fn append_trailing_slash(self) -> NormalizePath<Self>
where Self: Sized,

Append trailing slash to paths. Read more
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
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