pub struct Stream<'a> { /* private fields */ }Expand description
A stream of arbitrary data.
Implementations§
Source§impl<'a> Stream<'a>
impl<'a> Stream<'a>
Sourcepub fn raw_data(&self) -> &'a [u8] ⓘ
pub fn raw_data(&self) -> &'a [u8] ⓘ
Return the raw (potentially with some applied filters) data of the stream.
Sourcepub fn dict(&self) -> &Dict<'a>
pub fn dict(&self) -> &Dict<'a>
Return the raw (potentially with some applied filters) data of the stream.
Sourcepub fn decoded(&self) -> Option<Vec<u8>>
pub fn decoded(&self) -> Option<Vec<u8>>
Return the decoded data of the stream.
Note that the result of this method will not be cached, so calling it multiple times is expensive.
Sourcepub fn decoded_image(&self) -> Option<FilterResult>
pub fn decoded_image(&self) -> Option<FilterResult>
Return the decoded data of the stream, and return image metadata in case the data stream is a JPX stream.
Trait Implementations§
impl<'a> StructuralPartialEq for Stream<'a>
Auto Trait Implementations§
impl<'a> Freeze for Stream<'a>
impl<'a> !RefUnwindSafe for Stream<'a>
impl<'a> Send for Stream<'a>
impl<'a> Sync for Stream<'a>
impl<'a> Unpin for Stream<'a>
impl<'a> !UnwindSafe for Stream<'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