Struct ogg_magic::read_ogg_vorbis_file::OggParseResult
source · pub struct OggParseResult<T> {
pub result_type: String,
pub data: T,
pub index: usize,
pub get_raw_segment: Vec<u8>,
}Expand description
Represents the result of parsing an Ogg page, containing the type of result, the parsed data, the index of the segment, and the raw segment data.
Fields§
§result_type: StringThe type of result (e.g., “identification”, “comment”, “setup”, “body”).
data: TThe parsed data of type T.
index: usizeThe index of the segment within the page.
get_raw_segment: Vec<u8>The raw segment data.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for OggParseResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for OggParseResult<T>where
T: RefUnwindSafe,
impl<T> Send for OggParseResult<T>where
T: Send,
impl<T> Sync for OggParseResult<T>where
T: Sync,
impl<T> Unpin for OggParseResult<T>where
T: Unpin,
impl<T> UnwindSafe for OggParseResult<T>where
T: UnwindSafe,
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