pub struct FloatBlock(pub Vec<f32>);Expand description
Datablock that consists of a list of f32 values.
Used for storing floating-point image data (e.g., scientific imagery, HDR, elevation data).
Endianness is handled automatically by EndianFile.
Tuple Fields§
§0: Vec<f32>Implementations§
Source§impl FloatBlock
impl FloatBlock
Sourcepub fn offsets(blocks: Vec<Vec<f32>>) -> Offsets<FloatBlock>
pub fn offsets(blocks: Vec<Vec<f32>>) -> Offsets<FloatBlock>
Constructs an Offsets of FloatBlocks from a vector of
vectors of f32 values.
Sourcepub fn single(block: Vec<f32>) -> Offsets<FloatBlock>
pub fn single(block: Vec<f32>) -> Offsets<FloatBlock>
Constructs an Offsets from a vector of f32 values (single block).
Sourcepub fn big_offsets(blocks: Vec<Vec<f32>>) -> Offsets<FloatBlock, u64>
pub fn big_offsets(blocks: Vec<Vec<f32>>) -> Offsets<FloatBlock, u64>
Constructs a BigTIFF-compatible Offsets of FloatBlocks.
Sourcepub fn big_single(block: Vec<f32>) -> Offsets<FloatBlock, u64>
pub fn big_single(block: Vec<f32>) -> Offsets<FloatBlock, u64>
Constructs a BigTIFF-compatible Offsets from a single block.
Trait Implementations§
Source§impl Datablock for FloatBlock
impl Datablock for FloatBlock
Source§fn write_to(self, file: &mut EndianFile) -> Result<()>
fn write_to(self, file: &mut EndianFile) -> Result<()>
Writes this
Datablock to an EndianFile. The number of bytes
written must be exactly same number as returned by size(&self). Read moreAuto Trait Implementations§
impl Freeze for FloatBlock
impl RefUnwindSafe for FloatBlock
impl Send for FloatBlock
impl Sync for FloatBlock
impl Unpin for FloatBlock
impl UnwindSafe for FloatBlock
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