Search results

There are no results.

std.time.ToInstant

ToInstant

A type which can be converted to an Instant

This is useful when you want create a deadline that supports both Instant and Duration as an input.

Required methods

to_instant

Show source code
Hide source code
fn pub to_instant -> Instant
fn pub to_instant -> Instant

Converts self into an Instant.

Implementations

std.time.

Duration

impl ToInstant for Duration
std.time.

Instant

impl ToInstant for Instant