#[cfg(any(feature = "alloc", feature = "std"))]
use crate::prelude::Vec;
pub use crate::TransferPointEncoding as DtcPointEncoding;
#[non_exhaustive]
#[cfg(any(feature = "alloc", feature = "std"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, PartialEq)] pub struct VesaTransferCharacteristic {
pub encoding: DtcPointEncoding,
pub points: Vec<f32>,
}
#[cfg(any(feature = "alloc", feature = "std"))]
impl VesaTransferCharacteristic {
pub fn new(encoding: DtcPointEncoding, points: Vec<f32>) -> Self {
Self { encoding, points }
}
}