Struct pdf::object::StreamInfo
source · 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: I
Implementations§
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 copy 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> 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> Backend for Twhere
T: Deref<Target = [u8]>,
impl<T> Backend for Twhere T: Deref<Target = [u8]>,
fn read<R>(&self, range: R) -> Result<&[u8], PdfError>where R: IndexRange,
fn len(&self) -> usize
fn is_empty(&self) -> bool
source§fn locate_start_offset(&self) -> Result<usize>
fn locate_start_offset(&self) -> Result<usize>
Returns the offset of the beginning of the file, i.e., where the
%PDF-1.5
header is.
(currently only used internally!)source§fn locate_xref_offset(&self) -> Result<usize>
fn locate_xref_offset(&self) -> Result<usize>
Returns the value of startxref (currently only used internally!)
source§fn read_xref_table_and_trailer(
&self,
start_offset: usize,
resolve: &impl Resolve
) -> Result<(XRefTable, Dictionary)>
fn read_xref_table_and_trailer( &self, start_offset: usize, resolve: &impl Resolve ) -> Result<(XRefTable, Dictionary)>
Used internally by File, but could also be useful for applications that want to look at the raw PDF objects.
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