chrono::offset

Trait Offset

Source
pub trait Offset:
    Sized
    + Clone
    + Debug {
    // Required method
    fn fix(&self) -> FixedOffset;
}
Expand description

The offset from the local time to UTC.

Required Methods§

Source

fn fix(&self) -> FixedOffset

Returns the fixed offset from UTC to the local time stored.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§