pub struct M64Reader<'a> { /* private fields */ }Expand description
A fully structurally checked immutable file view.
Implementations§
Source§impl<'a> M64Reader<'a>
impl<'a> M64Reader<'a>
Sourcepub fn parse(
bytes: &'a [u8],
limits: M64ReadLimits,
scratch: &mut [M64PayloadInterval],
) -> Result<Self, M64ReadError>
pub fn parse( bytes: &'a [u8], limits: M64ReadLimits, scratch: &mut [M64PayloadInterval], ) -> Result<Self, M64ReadError>
Admit the entire file with bounded structural checks.
Sourcepub fn parse_legacy_with_limits(
bytes: &'a [u8],
limits: M64ReadLimits,
scratch: &mut [M64PayloadInterval],
) -> Result<Self, M64ReadError>
pub fn parse_legacy_with_limits( bytes: &'a [u8], limits: M64ReadLimits, scratch: &mut [M64PayloadInterval], ) -> Result<Self, M64ReadError>
Migration-only admission of defective legacy truncated hashes.
legacy_prefix_chunks reports these separately from full verification.
pub fn header(&self) -> &M64Header
pub fn georaster(&self) -> Option<&M64GeoRasterMetadata>
pub fn lrm3(&self) -> Option<&M64LocalMetricHeader>
pub fn raster_sample(&self, x: usize, y: usize) -> Option<M64RasterSample>
pub fn verification(&self) -> M64Verification
pub fn chunk(&self, index: usize) -> Option<M64Chunk<'a>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for M64Reader<'a>
impl<'a> RefUnwindSafe for M64Reader<'a>
impl<'a> Send for M64Reader<'a>
impl<'a> Sync for M64Reader<'a>
impl<'a> Unpin for M64Reader<'a>
impl<'a> UnsafeUnpin for M64Reader<'a>
impl<'a> UnwindSafe for M64Reader<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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