Enum time::util::local_offset::Soundness
source · pub enum Soundness {
Sound,
Unsound,
}
Expand description
The soundness of obtaining the local UTC offset.
Variants§
Sound
Obtaining the local UTC offset is required to be sound. Undefined behavior will never occur. This is the default.
Unsound
Obtaining the local UTC offset is allowed to invoke undefined behavior. Setting this
value is strongly discouraged. To do so, you must comply with the safety requirements
of time::local_offset::set_soundness
.
Trait Implementations§
source§impl PartialEq for Soundness
impl PartialEq for Soundness
impl Copy for Soundness
impl Eq for Soundness
impl StructuralPartialEq for Soundness
Auto Trait Implementations§
impl Freeze for Soundness
impl RefUnwindSafe for Soundness
impl Send for Soundness
impl Sync for Soundness
impl Unpin for Soundness
impl UnwindSafe for Soundness
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more