[−][src]Struct pdf::object::Stream
Simple Stream object with only some additional entries from the stream dict (I).
Fields
info: StreamInfo<I>
Implementations
impl<I: Object + Debug> Stream<I>
[src]
pub fn from_stream(s: PdfStream, resolve: &impl Resolve) -> Result<Self>
[src]
pub fn decode(&self) -> Result<Cow<'_, [u8]>>
[src]
decode the data. does not store the result. The caller is responsible for caching the result
pub fn data(&self) -> Result<&[u8]>
[src]
pub fn as_jpeg(&self) -> Option<&[u8]>
[src]
If this is contains DCT encoded data, return the compressed data as is
Methods from Deref<Target = StreamInfo<I>>
pub fn get_filters(&self) -> &[StreamFilter]ⓘ
[src]
Trait Implementations
impl<I: Object + Debug> Debug for Stream<I>
[src]
impl<I: Object> Deref for Stream<I>
[src]
type Target = StreamInfo<I>
The resulting type after dereferencing.
fn deref(&self) -> &StreamInfo<I>
[src]
impl<I: Object + Debug> Object for Stream<I>
[src]
Auto Trait Implementations
impl<I> RefUnwindSafe for Stream<I> where
I: RefUnwindSafe,
[src]
I: RefUnwindSafe,
impl<I> Send for Stream<I> where
I: Send,
[src]
I: Send,
impl<I = ()> !Sync for Stream<I>
[src]
impl<I> Unpin for Stream<I> where
I: Unpin,
[src]
I: Unpin,
impl<I> UnwindSafe for Stream<I> where
I: UnwindSafe,
[src]
I: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AnyObject for T where
T: Object + 'static,
[src]
T: Object + 'static,
pub fn serialize(&Self, &mut Vec<u8, Global>)
[src]
pub fn type_name(&Self) -> &'static str
[src]
pub fn type_id(&Self) -> TypeId
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,