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