pub enum DescriptorRecord {
Simple(Vec<DescriptorData>),
}Variants§
Simple(Vec<DescriptorData>)
Implementations§
Source§impl DescriptorRecord
impl DescriptorRecord
pub fn new<F, B>( file: &mut F, lenght: u16, desc_type: &DescriptorTypeRecord, ) -> Result<Self>
pub fn iter(&self) -> Iter<'_, DescriptorData>
pub fn iter_mut(&mut self) -> IterMut<'_, DescriptorData>
pub fn record_type_len(&self) -> u16
pub fn record_data_len(&self) -> u16
pub fn record_type_to_raw<'a, B: ByteOrder>( &self, data: &'a mut [u8], ) -> Result<&'a mut [u8]>
pub fn record_data_to_raw<'a, B: ByteOrder>( &self, data: &'a mut [u8], ) -> Result<&'a mut [u8]>
Trait Implementations§
Source§impl Clone for DescriptorRecord
impl Clone for DescriptorRecord
Source§fn clone(&self) -> DescriptorRecord
fn clone(&self) -> DescriptorRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DescriptorRecord
impl Debug for DescriptorRecord
Source§impl<'de> Deserialize<'de> for DescriptorRecord
impl<'de> Deserialize<'de> for DescriptorRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DescriptorRecord
impl Display for DescriptorRecord
Source§impl Hash for DescriptorRecord
impl Hash for DescriptorRecord
Source§impl PartialEq for DescriptorRecord
impl PartialEq for DescriptorRecord
Source§impl Serialize for DescriptorRecord
impl Serialize for DescriptorRecord
impl Eq for DescriptorRecord
impl StructuralPartialEq for DescriptorRecord
Auto Trait Implementations§
impl Freeze for DescriptorRecord
impl RefUnwindSafe for DescriptorRecord
impl Send for DescriptorRecord
impl Sync for DescriptorRecord
impl Unpin for DescriptorRecord
impl UnwindSafe for DescriptorRecord
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