pub struct Bundle { /* private fields */ }Implementations§
Source§impl Bundle
impl Bundle
Sourcepub fn open(bytes: &[u8]) -> Result<Self, DecodeError>
pub fn open(bytes: &[u8]) -> Result<Self, DecodeError>
Parse and fully validate a bundle, copying the bytes into owned memory.
pub fn metadata_json(&self) -> &str
pub fn plane_length(&self) -> usize
pub fn frame_count(&self) -> u32
pub fn variable_ids(&self) -> &[u8] ⓘ
Sourcepub fn unit_seconds(&self) -> u32
pub fn unit_seconds(&self) -> u32
Seconds per axis unit: a frame’s valid time is
runTime + frameOffset * unitSeconds.
Sourcepub fn frame_offsets(&self) -> &[u16]
pub fn frame_offsets(&self) -> &[u16]
The materialized frame-offset axis, ascending — the keys every plane of every variable is addressed by.
pub fn clear_cache(&mut self)
Sourcepub fn tile_geometry(&self) -> Option<TileGeometry>
pub fn tile_geometry(&self) -> Option<TileGeometry>
The file’s tiling, or None for a plane-major v1 file.
pub fn decode_frame( &mut self, request: FrameRequest, ) -> Result<&[u8], DecodeError>
Sourcepub fn decode_frame_tiles(
&mut self,
request: FrameRequest,
tiles: TileRect,
) -> Result<&[u8], DecodeError>
pub fn decode_frame_tiles( &mut self, request: FrameRequest, tiles: TileRect, ) -> Result<&[u8], DecodeError>
Decode only the tiles a viewport covers, into the same whole-plane buffer. Cells outside the rectangle keep whatever the buffer held, so a renderer must draw only the rectangle it asked for.
Sourcepub fn decode_series(
&mut self,
variable_id: u8,
column: u32,
row: u32,
) -> Result<Vec<u8>, DecodeError>
pub fn decode_series( &mut self, variable_id: u8, column: u32, row: u32, ) -> Result<Vec<u8>, DecodeError>
One cell’s code on every frame of the axis, in axis order.
Auto Trait Implementations§
impl Forget for Bundle
impl Freeze for Bundlewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<u16>: Freeze,
PhantomData<PlaneEntry>: Freeze,
PhantomData<(FrameRequest, usize)>: Freeze,
PhantomData<VariableEntry>: Freeze,
PhantomData<GroupEntry>: Freeze,
PhantomData<ChunkEntry>: Freeze,
PhantomData<u64>: Freeze,
PhantomData<(u32, u32)>: Freeze,
PhantomData<Option<Vec<u8>>>: Freeze,
PhantomData<(FrameRequest, Vec<u8>)>: Freeze,
PhantomData<(usize, Vec<u8>)>: Freeze,
impl Move for Bundle
impl RefUnwindSafe for Bundle
impl Send for Bundle
impl Sync for Bundle
impl Unpin for Bundle
impl UnsafeUnpin for Bundlewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<u16>: UnsafeUnpin,
PhantomData<PlaneEntry>: UnsafeUnpin,
PhantomData<(FrameRequest, usize)>: UnsafeUnpin,
PhantomData<VariableEntry>: UnsafeUnpin,
PhantomData<GroupEntry>: UnsafeUnpin,
PhantomData<ChunkEntry>: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
PhantomData<(u32, u32)>: UnsafeUnpin,
PhantomData<Option<Vec<u8>>>: UnsafeUnpin,
PhantomData<(FrameRequest, Vec<u8>)>: UnsafeUnpin,
PhantomData<(usize, Vec<u8>)>: UnsafeUnpin,
impl UnwindSafe for Bundlewhere
RawVecInner: UnwindSafe,
HashMap<FrameRequest, usize>: UnwindSafe,
HashMap<FrameRequest, Vec<u8>>: UnwindSafe,
HashMap<usize, Vec<u8>>: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more