pub struct StreamInfo<I> {
pub filters: Vec<StreamFilter>,
pub file: Option<FileSpec>,
pub file_filters: Vec<StreamFilter>,
pub info: I,
}Expand description
General stream type. I is the additional information to be read from the stream dict.
Fields§
§filters: Vec<StreamFilter>Filters that the data is currently encoded with (corresponds to both /Filter and
/DecodeParms in the PDF specs), constructed in from_primitive().
file: Option<FileSpec>Eventual file containing the stream contentst
file_filters: Vec<StreamFilter>Filters to apply to external file specified in file.
info: IImplementations§
Source§impl<T> StreamInfo<T>
impl<T> StreamInfo<T>
pub fn get_filters(&self) -> &[StreamFilter]
Trait Implementations§
Source§impl<I: Clone> Clone for StreamInfo<I>
impl<I: Clone> Clone for StreamInfo<I>
Source§fn clone(&self) -> StreamInfo<I>
fn clone(&self) -> StreamInfo<I>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<I> DataSize for StreamInfo<I>where
I: DataSize,
impl<I> DataSize for StreamInfo<I>where
I: DataSize,
Source§const IS_DYNAMIC: bool
const IS_DYNAMIC: bool
If
true, the type has a heap size that can vary at runtime, depending on the actual value.Source§const STATIC_HEAP_SIZE: usize
const STATIC_HEAP_SIZE: usize
The amount of space a value of the type always occupies. If
IS_DYNAMIC is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.Source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Estimates the size of heap memory taken up by this value. Read more
Source§impl<I: Debug> Debug for StreamInfo<I>
impl<I: Debug> Debug for StreamInfo<I>
Source§impl<I: DeepClone> DeepClone for StreamInfo<I>
impl<I: DeepClone> DeepClone for StreamInfo<I>
fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self>
Source§impl<I: Default> Default for StreamInfo<I>
impl<I: Default> Default for StreamInfo<I>
Source§fn default() -> StreamInfo<I>
fn default() -> StreamInfo<I>
Returns the “default value” for a type. Read more
Source§impl<I> Deref for StreamInfo<I>
impl<I> Deref for StreamInfo<I>
Auto Trait Implementations§
impl<I> Freeze for StreamInfo<I>where
I: Freeze,
impl<I> RefUnwindSafe for StreamInfo<I>where
I: RefUnwindSafe,
impl<I> Send for StreamInfo<I>where
I: Send,
impl<I> Sync for StreamInfo<I>where
I: Sync,
impl<I> Unpin for StreamInfo<I>where
I: Unpin,
impl<I> UnwindSafe for StreamInfo<I>where
I: 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
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