use derive_deref::Deref; use serde::Serialize; use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout}; use super::Close; #[derive( Debug, Default, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, FromBytes, Immutable, IntoBytes, KnownLayout, Deref, Serialize, )] #[repr(C)] pub struct High(T); impl From for High { fn from(value: T) -> Self { Self(value) } } impl From> for High where T: Copy, { fn from(value: Close) -> Self { Self(*value) } }