pub struct V2Part {
pub id: u8,
pub amount: u32,
pub blocks: Vec<V2Block>,
}Fields§
§id: u8§amount: u32§blocks: Vec<V2Block>Trait Implementations§
impl Eq for V2Part
Source§impl Part for V2Part
impl Part for V2Part
type Block = V2Block
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 V2Part
Auto Trait Implementations§
impl Freeze for V2Part
impl RefUnwindSafe for V2Part
impl Send for V2Part
impl Sync for V2Part
impl Unpin for V2Part
impl UnsafeUnpin for V2Part
impl UnwindSafe for V2Part
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.