pub struct J2kCodestreamPayload<'a> { /* private fields */ }Expand description
Borrowed raw codestream slice extracted from raw JPEG 2000 bytes or a JP2/JPH wrapper.
Implementations§
Source§impl<'a> J2kCodestreamPayload<'a>
impl<'a> J2kCodestreamPayload<'a>
Sourcepub const fn codestream(self) -> &'a [u8] ⓘ
pub const fn codestream(self) -> &'a [u8] ⓘ
Raw JPEG 2000 codestream bytes.
Sourcepub const fn payload_kind(self) -> CompressedPayloadKind
pub const fn payload_kind(self) -> CompressedPayloadKind
Encapsulation shape the codestream was extracted from.
Sourcepub const fn codestream_offset(self) -> usize
pub const fn codestream_offset(self) -> usize
Byte offset where the codestream payload starts in the original input.
Trait Implementations§
Source§impl<'a> Clone for J2kCodestreamPayload<'a>
impl<'a> Clone for J2kCodestreamPayload<'a>
Source§fn clone(&self) -> J2kCodestreamPayload<'a>
fn clone(&self) -> J2kCodestreamPayload<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for J2kCodestreamPayload<'a>
Source§impl<'a> Debug for J2kCodestreamPayload<'a>
impl<'a> Debug for J2kCodestreamPayload<'a>
impl<'a> Eq for J2kCodestreamPayload<'a>
Source§impl<'a> PartialEq for J2kCodestreamPayload<'a>
impl<'a> PartialEq for J2kCodestreamPayload<'a>
impl<'a> StructuralPartialEq for J2kCodestreamPayload<'a>
Auto Trait Implementations§
impl<'a> Freeze for J2kCodestreamPayload<'a>
impl<'a> RefUnwindSafe for J2kCodestreamPayload<'a>
impl<'a> Send for J2kCodestreamPayload<'a>
impl<'a> Sync for J2kCodestreamPayload<'a>
impl<'a> Unpin for J2kCodestreamPayload<'a>
impl<'a> UnsafeUnpin for J2kCodestreamPayload<'a>
impl<'a> UnwindSafe for J2kCodestreamPayload<'a>
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