Skip to main content

TestCaseConfigBuilder

Struct TestCaseConfigBuilder 

Source
pub struct TestCaseConfigBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_internal().

Implementations§

Source§

impl<S: State> TestCaseConfigBuilder<S>

Source

pub fn settings(self, value: Settings) -> TestCaseConfigBuilder<SetSettings<S>>
where S::Settings: IsUnset,

Optional (Some / Option setters). The Settings to modify. If not provided, will use Settings::clone_current().

Source

pub fn maybe_settings( self, value: Option<Settings>, ) -> TestCaseConfigBuilder<SetSettings<S>>
where S::Settings: IsUnset,

Optional (Some / Option setters). The Settings to modify. If not provided, will use Settings::clone_current().

Source

pub fn description( self, value: impl Into<String>, ) -> TestCaseConfigBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). The description of the test case. If not provided, will be extracted from the name of the current thread, which is based on the test case name.

This is particularly useful when using insta together with rstest. See: https://insta.rs/docs/patterns/

§Examples
§TestCase description for rstest cases
#[cfg(test)]
mod tests {
    use insta::assert_snapshot;
    use rstest::{fixture, rstest};
    use roadster::testing::snapshot::TestCase;

    #[fixture]
    fn case() -> TestCase {
        Default::default()
    }

    #[rstest]
    #[case(0)] // _case.description == case_1
    #[case::foo(0)] // _case.description == foo
    fn test(_case: TestCase, #[case] num: u32) {
        // Snapshot file name will have suffix of `@{_case.description}`, e.g. `@case_1`
        assert_snapshot!(num);
    }
}
§TestCase with manually set description
#[cfg(test)]
mod tests {
    use insta::assert_snapshot;
    use roadster::testing::snapshot::{TestCase, TestCaseConfig};

    #[test]
    fn test() {
        let _case = TestCaseConfig::builder().description("Custom description").build();
        // Snapshot file name will have suffix of `@Custom description`
        assert_snapshot!("snapshot_value");
    }
}
Source

pub fn maybe_description( self, value: Option<impl Into<String>>, ) -> TestCaseConfigBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). The description of the test case. If not provided, will be extracted from the name of the current thread, which is based on the test case name.

This is particularly useful when using insta together with rstest. See: https://insta.rs/docs/patterns/

§Examples
§TestCase description for rstest cases
#[cfg(test)]
mod tests {
    use insta::assert_snapshot;
    use rstest::{fixture, rstest};
    use roadster::testing::snapshot::TestCase;

    #[fixture]
    fn case() -> TestCase {
        Default::default()
    }

    #[rstest]
    #[case(0)] // _case.description == case_1
    #[case::foo(0)] // _case.description == foo
    fn test(_case: TestCase, #[case] num: u32) {
        // Snapshot file name will have suffix of `@{_case.description}`, e.g. `@case_1`
        assert_snapshot!(num);
    }
}
§TestCase with manually set description
#[cfg(test)]
mod tests {
    use insta::assert_snapshot;
    use roadster::testing::snapshot::{TestCase, TestCaseConfig};

    #[test]
    fn test() {
        let _case = TestCaseConfig::builder().description("Custom description").build();
        // Snapshot file name will have suffix of `@Custom description`
        assert_snapshot!("snapshot_value");
    }
}
Source

pub fn set_suffix(self, value: bool) -> TestCaseConfigBuilder<SetSetSuffix<S>>
where S::SetSuffix: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to set the description as the suffix of the snapshot file.

It is particularly useful to set this to true when using insta together with rstest. See: https://insta.rs/docs/patterns/

Source

pub fn maybe_set_suffix( self, value: Option<bool>, ) -> TestCaseConfigBuilder<SetSetSuffix<S>>
where S::SetSuffix: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to set the description as the suffix of the snapshot file.

It is particularly useful to set this to true when using insta together with rstest. See: https://insta.rs/docs/patterns/

Source

pub fn redact_uuid(self, value: bool) -> TestCaseConfigBuilder<SetRedactUuid<S>>
where S::RedactUuid: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to redact UUIDs from snapshots. This is useful for tests involving dynamically created UUIDs that will be different on every test run, or involve real UUIDs that you don’t want leaked in your source code.

Source

pub fn maybe_redact_uuid( self, value: Option<bool>, ) -> TestCaseConfigBuilder<SetRedactUuid<S>>
where S::RedactUuid: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to redact UUIDs from snapshots. This is useful for tests involving dynamically created UUIDs that will be different on every test run, or involve real UUIDs that you don’t want leaked in your source code.

Source

pub fn redact_auth_tokens( self, value: bool, ) -> TestCaseConfigBuilder<SetRedactAuthTokens<S>>
where S::RedactAuthTokens: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to redact auth tokens from snapshots. This is useful for tests involving dynamically created auth tokens that will be different on every test run, or involve real auth tokens that you don’t want leaked in your source code.

Source

pub fn maybe_redact_auth_tokens( self, value: Option<bool>, ) -> TestCaseConfigBuilder<SetRedactAuthTokens<S>>
where S::RedactAuthTokens: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to redact auth tokens from snapshots. This is useful for tests involving dynamically created auth tokens that will be different on every test run, or involve real auth tokens that you don’t want leaked in your source code.

Source

pub fn redact_postgres_uri( self, value: bool, ) -> TestCaseConfigBuilder<SetRedactPostgresUri<S>>
where S::RedactPostgresUri: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to redact Postgres URIs from snapshots. This is useful for tests involving dynamically created Postgres instances that will be different on every test run, or involve real Postgres instances that you don’t want leaked in your source code.

Source

pub fn maybe_redact_postgres_uri( self, value: Option<bool>, ) -> TestCaseConfigBuilder<SetRedactPostgresUri<S>>
where S::RedactPostgresUri: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to redact Postgres URIs from snapshots. This is useful for tests involving dynamically created Postgres instances that will be different on every test run, or involve real Postgres instances that you don’t want leaked in your source code.

Source

pub fn redact_mysql_uri( self, value: bool, ) -> TestCaseConfigBuilder<SetRedactMysqlUri<S>>
where S::RedactMysqlUri: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to redact Mysql URIs from snapshots. This is useful for tests involving dynamically created Mysql instances that will be different on every test run, or involve real Mysql instances that you don’t want leaked in your source code.

Source

pub fn maybe_redact_mysql_uri( self, value: Option<bool>, ) -> TestCaseConfigBuilder<SetRedactMysqlUri<S>>
where S::RedactMysqlUri: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to redact Mysql URIs from snapshots. This is useful for tests involving dynamically created Mysql instances that will be different on every test run, or involve real Mysql instances that you don’t want leaked in your source code.

Source

pub fn redact_redis_uri( self, value: bool, ) -> TestCaseConfigBuilder<SetRedactRedisUri<S>>
where S::RedactRedisUri: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to redact Redis URIs from snapshots. This is useful for tests involving dynamically created Redis instances that will be different on every test run, or involve real Redis instances that you don’t want leaked in your source code.

Source

pub fn maybe_redact_redis_uri( self, value: Option<bool>, ) -> TestCaseConfigBuilder<SetRedactRedisUri<S>>
where S::RedactRedisUri: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to redact Redis URIs from snapshots. This is useful for tests involving dynamically created Redis instances that will be different on every test run, or involve real Redis instances that you don’t want leaked in your source code.

Source

pub fn redact_smtp_uri( self, value: bool, ) -> TestCaseConfigBuilder<SetRedactSmtpUri<S>>
where S::RedactSmtpUri: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to redact SMTP URIs from snapshots. This is useful for tests involving dynamically created SMTP instances that will be different on every test run, or involve real SMTP instances that you don’t want leaked in your source code.

Source

pub fn maybe_redact_smtp_uri( self, value: Option<bool>, ) -> TestCaseConfigBuilder<SetRedactSmtpUri<S>>
where S::RedactSmtpUri: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to redact SMTP URIs from snapshots. This is useful for tests involving dynamically created SMTP instances that will be different on every test run, or involve real SMTP instances that you don’t want leaked in your source code.

Source

pub fn redact_timestamp( self, value: bool, ) -> TestCaseConfigBuilder<SetRedactTimestamp<S>>
where S::RedactTimestamp: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to redact timestamps. This is useful for tests involving dynamically created timestamps that will be different on every test run.

Source

pub fn maybe_redact_timestamp( self, value: Option<bool>, ) -> TestCaseConfigBuilder<SetRedactTimestamp<S>>
where S::RedactTimestamp: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to redact timestamps. This is useful for tests involving dynamically created timestamps that will be different on every test run.

Source

pub fn bind_scope(self, value: bool) -> TestCaseConfigBuilder<SetBindScope<S>>
where S::BindScope: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to automatically bind the Settings to the current scope. If true, the settings will be automatically applied for the test in which the TestCase was built. If false, the settings will only be applied after manually calling Settings::bind_to_scope, or placing all relevant snapshot assertions inside a Settings::bind call.

§Examples
§Auto bind to scope
#[cfg(test)]
mod tests {
    use insta::assert_snapshot;
    use roadster::testing::snapshot::{TestCase, TestCaseConfig};

    #[test]
    fn test() {
        let _case = TestCaseConfig::builder().description("Custom description").build();
        // Snapshot file name will have suffix of `@Custom description`
        assert_snapshot!("snapshot_value");
    }
}
§Manually bind Settings scope
#[cfg(test)]
mod tests {
    use insta::assert_snapshot;
    use roadster::testing::snapshot::{TestCase, TestCaseConfig};

    #[test]
    fn test() {
        let case = TestCaseConfig::builder().bind_scope(false).build();
        // This snapshot will not have a suffix
        assert_snapshot!("snapshot_value");

        case.settings.bind(|| {
            // This snapshot will have suffix `@test` (extracted from the curren thread name)
            assert_snapshot!("snapshot_value_2");
        });
    }
}
Source

pub fn maybe_bind_scope( self, value: Option<bool>, ) -> TestCaseConfigBuilder<SetBindScope<S>>
where S::BindScope: IsUnset,

Optional (Some / Option setters). Default: true.

Whether to automatically bind the Settings to the current scope. If true, the settings will be automatically applied for the test in which the TestCase was built. If false, the settings will only be applied after manually calling Settings::bind_to_scope, or placing all relevant snapshot assertions inside a Settings::bind call.

§Examples
§Auto bind to scope
#[cfg(test)]
mod tests {
    use insta::assert_snapshot;
    use roadster::testing::snapshot::{TestCase, TestCaseConfig};

    #[test]
    fn test() {
        let _case = TestCaseConfig::builder().description("Custom description").build();
        // Snapshot file name will have suffix of `@Custom description`
        assert_snapshot!("snapshot_value");
    }
}
§Manually bind Settings scope
#[cfg(test)]
mod tests {
    use insta::assert_snapshot;
    use roadster::testing::snapshot::{TestCase, TestCaseConfig};

    #[test]
    fn test() {
        let case = TestCaseConfig::builder().bind_scope(false).build();
        // This snapshot will not have a suffix
        assert_snapshot!("snapshot_value");

        case.settings.bind(|| {
            // This snapshot will have suffix `@test` (extracted from the curren thread name)
            assert_snapshot!("snapshot_value_2");
        });
    }
}
Source§

impl<S: IsComplete> TestCaseConfigBuilder<S>

Source

pub fn build(self) -> TestCase

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Source§

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

Source§

impl<T> AnySync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

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

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

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

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

fn with_current_context(self) -> WithContext<Self>

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

impl<T> Instrument for T

Source§

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

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

fn in_current_span(self) -> Instrumented<Self>

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

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoApi for T

Source§

fn into_api<A>(self) -> UseApi<T, A>
where T: Sized,

into UseApi
Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

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

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

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

impl<T> IntoResult<T> for T

Source§

impl<T> IntoSql for T

Source§

fn into_sql<T>(self) -> Self::Expression

Convert self to an expression for Diesel’s query builder. Read more
Source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,

Convert &self to an expression for Diesel’s query builder. Read more
Source§

impl<L> LayerExt<L> for L

Source§

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.
Source§

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

Source§

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

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, Conn> RunQueryDsl<Conn> for T

Source§

fn execute<'conn, 'query>( self, conn: &'conn mut Conn, ) -> <Conn as AsyncConnection>::ExecuteFuture<'conn, 'query>
where Conn: AsyncConnection + Send, Self: ExecuteDsl<Conn> + 'query,

Executes the given command, returning the number of rows affected. Read more
Source§

fn load<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>
where U: Send, Conn: AsyncConnection, Self: LoadQuery<'query, Conn, U> + 'query,

Executes the given query, returning a Vec with the returned rows. Read more
Source§

fn load_stream<'conn, 'query, U>( self, conn: &'conn mut Conn, ) -> Self::LoadFuture<'conn>
where Conn: AsyncConnection, U: 'conn, Self: LoadQuery<'query, Conn, U> + 'query,

Executes the given query, returning a Stream with the returned rows. Read more
Source§

fn get_result<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<Self::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>, fn(Self::Stream<'conn>) -> Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>>
where U: Send + 'conn, Conn: AsyncConnection, Self: LoadQuery<'query, Conn, U> + 'query,

Runs the command, and returns the affected row. Read more
Source§

fn get_results<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>
where U: Send, Conn: AsyncConnection, Self: LoadQuery<'query, Conn, U> + 'query,

Runs the command, returning an Vec with the affected rows. Read more
Source§

fn first<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<<Self::Output as LoadQuery<'query, Conn, U>>::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>, fn(<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>) -> Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>>
where U: Send + 'conn, Conn: AsyncConnection, Self: LimitDsl, Self::Output: LoadQuery<'query, Conn, U> + Send + 'query,

Attempts to load a single record. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ServiceExt for T

Source§

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

Compresses response bodies. Read more
Source§

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

Decompress response bodies. Read more
Source§

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

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

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

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

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

Follow redirect resposes using the Standard policy. Read more
Source§

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

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

Mark headers as sensitive on requests. Read more
Source§

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

Mark headers as sensitive on responses. Read more
Source§

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

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

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

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

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

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

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

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

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

Propgate request ids from requests to responses. Read more
Source§

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

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

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

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

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

Remove trailing slashes from paths. Read more
Source§

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

Append trailing slash to paths. 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.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

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

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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