Skip to main content

ToExtent

Trait ToExtent 

Source
pub trait ToExtent {
    // Required method
    fn to_extent(&self) -> Option<Extent>;
}
Expand description

Try convert a value into an Extent.

Required Methods§

Source

fn to_extent(&self) -> Option<Extent>

Perform the conversion.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToExtent for Range<Option<Timestamp>>

Source§

impl ToExtent for Range<SystemTime>

Available on crate feature std only.
Source§

impl ToExtent for Range<Timestamp>

Source§

impl ToExtent for SystemTime

Available on crate feature std only.
Source§

impl<'a, T> ToExtent for &'a T
where T: ToExtent + ?Sized,

Source§

impl<T> ToExtent for Option<T>
where T: ToExtent,

Implementors§

Source§

impl ToExtent for Empty

Source§

impl ToExtent for Extent

Source§

impl ToExtent for Timestamp

Source§

impl<'a, P: Props> ToExtent for Span<'a, P>

Source§

impl<'a, P> ToExtent for Metric<'a, P>

Source§

impl<C: Clock> ToExtent for Timer<C>