pub struct FrameIndex {
pub offsets: Vec<u64>,
pub data_len: u64,
}Expand description
Frame start offsets for one data file, plus its total length.
Fields§
§offsets: Vec<u64>Byte offset of each frame start, strictly increasing.
data_len: u64Length of the data in bytes; the last frame ends here.
Implementations§
Source§impl FrameIndex
impl FrameIndex
Sourcepub fn scan(text: &str) -> Result<Self, ParseError>
pub fn scan(text: &str) -> Result<Self, ParseError>
Scan text for frame starts, failing on the first malformed frame.
Trait Implementations§
Source§impl Clone for FrameIndex
impl Clone for FrameIndex
Source§impl Debug for FrameIndex
impl Debug for FrameIndex
impl Eq for FrameIndex
Source§impl PartialEq for FrameIndex
impl PartialEq for FrameIndex
impl StructuralPartialEq for FrameIndex
Auto Trait Implementations§
impl Freeze for FrameIndex
impl RefUnwindSafe for FrameIndex
impl Send for FrameIndex
impl Sync for FrameIndex
impl Unpin for FrameIndex
impl UnsafeUnpin for FrameIndex
impl UnwindSafe for FrameIndex
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