pub struct Offsets<T: Datablock, O: OffsetSize = u32> {
pub data: Vec<T>,
/* private fields */
}Expand description
A list of LONG values, each pointing to a specific
Datablock.
This structure owns the list of Datablocks instead, so the user doesn’t have to deal with the offsets in the file. It is responsible for writing both the offsets and the blocks of data.
Generic over O: OffsetSize to support both TIFF (u32) and BigTIFF (u64).
Fields§
§data: Vec<T>Implementations§
Source§impl<T: Datablock + 'static, O: OffsetSize> Offsets<T, O>
impl<T: Datablock + 'static, O: OffsetSize> Offsets<T, O>
Trait Implementations§
impl<T: Datablock + 'static> FieldValues<u64> for Offsets<T, u64>
impl<T: Datablock + 'static> FieldValues for Offsets<T, u32>
Auto Trait Implementations§
impl<T, O> Freeze for Offsets<T, O>
impl<T, O> RefUnwindSafe for Offsets<T, O>where
O: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, O> Send for Offsets<T, O>
impl<T, O> Sync for Offsets<T, O>
impl<T, O> Unpin for Offsets<T, O>
impl<T, O> UnwindSafe for Offsets<T, O>where
O: UnwindSafe,
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