1 2 3 4 5 6
use crate::descriptors::error::DescriptorError; pub trait DescriptorParser { type Output; fn parse(&self, data: &[u8]) -> Result<Self::Output, DescriptorError>; }