pub struct V4Part {
pub id: u8,
pub amount: u32,
pub blocks: Vec<V4Block>,
}Fields§
§id: u8§amount: u32§blocks: Vec<V4Block>Trait Implementations§
impl Eq for V4Part
Source§impl Part for V4Part
impl Part for V4Part
type Block = V4Block
fn id(&self) -> u8
fn amount(&self) -> u32
fn blocks(&self) -> Vec<Self::Block>
fn from_data(id: u8, amount: u32, blocks: Vec<Self::Block>) -> Self
fn decode_header(data: &[u8], offset: &mut usize) -> Option<(u8, u32)>
fn encode_header(&self, data: &mut Vec<u8>)
fn decode( data: &[u8], offset: &mut usize, meta: <<Self::Block as Block>::Track as Track>::Metadata, ) -> Option<Self>
fn encode( &self, data: &mut Vec<u8>, meta: <<Self::Block as Block>::Track as Track>::Metadata, )
impl StructuralPartialEq for V4Part
Auto Trait Implementations§
impl Freeze for V4Part
impl RefUnwindSafe for V4Part
impl Send for V4Part
impl Sync for V4Part
impl Unpin for V4Part
impl UnsafeUnpin for V4Part
impl UnwindSafe for V4Part
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.