pub struct TileGroupObu {
pub tile_info: TileInfo,
pub groups: Vec<TileGroup>,
}Expand description
Tile group OBU parser.
Fields§
§tile_info: TileInfoTile info from frame header.
groups: Vec<TileGroup>Tile groups in this OBU.
Implementations§
Source§impl TileGroupObu
impl TileGroupObu
Sourcepub fn parse(&mut self, data: &[u8]) -> CodecResult<()>
pub fn parse(&mut self, data: &[u8]) -> CodecResult<()>
Sourcepub fn total_tiles(&self) -> usize
pub fn total_tiles(&self) -> usize
Get total number of tiles across all groups.
Sourcepub fn get_tile(&self, tile_idx: u32) -> Option<&TileData>
pub fn get_tile(&self, tile_idx: u32) -> Option<&TileData>
Get a specific tile by global index.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if all tiles have been received.
Trait Implementations§
Source§impl Clone for TileGroupObu
impl Clone for TileGroupObu
Source§fn clone(&self) -> TileGroupObu
fn clone(&self) -> TileGroupObu
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TileGroupObu
impl RefUnwindSafe for TileGroupObu
impl Send for TileGroupObu
impl Sync for TileGroupObu
impl Unpin for TileGroupObu
impl UnsafeUnpin for TileGroupObu
impl UnwindSafe for TileGroupObu
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<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