pub enum StreamData {
Raw {
offset: u64,
length: u64,
},
Decoded {
data: Vec<u8>,
},
}Expand description
Represents the raw (undecoded) data of a PDF stream.
Stream data is not read or decoded at parse time. Only the byte range within the source data is recorded for later on-demand decoding.
Variants§
Raw
Undecoded: byte range within source data.
Decoded
Already decoded/generated data (used by editing operations).
Trait Implementations§
Source§impl Clone for StreamData
impl Clone for StreamData
Source§fn clone(&self) -> StreamData
fn clone(&self) -> StreamData
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 moreAuto Trait Implementations§
impl Freeze for StreamData
impl RefUnwindSafe for StreamData
impl Send for StreamData
impl Sync for StreamData
impl Unpin for StreamData
impl UnsafeUnpin for StreamData
impl UnwindSafe for StreamData
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