[][src]Struct mupdf::PdfObject

pub struct PdfObject { /* fields omitted */ }

Implementations

impl PdfObject[src]

pub fn try_clone(&self) -> Result<Self, Error>[src]

pub fn new_null() -> PdfObject

Notable traits for PdfObject

impl Write for PdfObject
[src]

pub fn new_bool(b: bool) -> PdfObject

Notable traits for PdfObject

impl Write for PdfObject
[src]

pub fn new_int(i: i32) -> Result<PdfObject, Error>[src]

pub fn new_real(f: f32) -> Result<PdfObject, Error>[src]

pub fn new_string(s: &str) -> Result<PdfObject, Error>[src]

pub fn new_name(name: &str) -> Result<PdfObject, Error>[src]

pub fn is_indirect(&self) -> Result<bool, Error>[src]

pub fn is_null(&self) -> Result<bool, Error>[src]

pub fn is_bool(&self) -> Result<bool, Error>[src]

pub fn is_int(&self) -> Result<bool, Error>[src]

pub fn is_real(&self) -> Result<bool, Error>[src]

pub fn is_number(&self) -> Result<bool, Error>[src]

pub fn is_string(&self) -> Result<bool, Error>[src]

pub fn is_name(&self) -> Result<bool, Error>[src]

pub fn is_array(&self) -> Result<bool, Error>[src]

pub fn is_dict(&self) -> Result<bool, Error>[src]

pub fn is_stream(&self) -> Result<bool, Error>[src]

pub fn as_bool(&self) -> Result<bool, Error>[src]

pub fn as_int(&self) -> Result<i32, Error>[src]

pub fn as_float(&self) -> Result<f32, Error>[src]

pub fn as_indirect(&self) -> Result<i32, Error>[src]

pub fn as_name(&self) -> Result<&str, Error>[src]

pub fn as_string(&self) -> Result<&str, Error>[src]

pub fn as_bytes(&self) -> Result<&[u8], Error>[src]

pub fn resolve(&self) -> Result<Option<Self>, Error>[src]

pub fn read_stream(&self) -> Result<Vec<u8>, Error>[src]

pub fn read_raw_stream(&self) -> Result<Vec<u8>, Error>[src]

pub fn write_object(&mut self, obj: &PdfObject) -> Result<(), Error>[src]

pub fn write_stream_buffer(&mut self, buf: &Buffer) -> Result<(), Error>[src]

pub fn write_stream_string(&mut self, string: &str) -> Result<(), Error>[src]

pub fn write_raw_stream_buffer(&mut self, buf: &Buffer) -> Result<(), Error>[src]

pub fn write_raw_stream_string(&mut self, string: &str) -> Result<(), Error>[src]

pub fn get_array(&self, index: i32) -> Result<Option<Self>, Error>[src]

pub fn get_dict<K: IntoPdfDictKey>(&self, key: K) -> Result<Option<Self>, Error>[src]

pub fn get_dict_inheritable<K: IntoPdfDictKey>(
    &self,
    key: K
) -> Result<Option<Self>, Error>
[src]

pub fn len(&self) -> Result<usize, Error>[src]

pub fn array_put(&mut self, index: i32, value: Self) -> Result<(), Error>[src]

pub fn array_push(&mut self, value: Self) -> Result<(), Error>[src]

pub fn array_delete(&mut self, index: i32) -> Result<(), Error>[src]

pub fn dict_put<K: IntoPdfDictKey>(
    &mut self,
    key: K,
    value: Self
) -> Result<(), Error>
[src]

pub fn dict_delete<K: IntoPdfDictKey>(&mut self, key: K) -> Result<(), Error>[src]

pub fn document(&self) -> Option<PdfDocument>[src]

Trait Implementations

impl Clone for PdfObject[src]

impl Debug for PdfObject[src]

impl Display for PdfObject[src]

impl Drop for PdfObject[src]

impl From<bool> for PdfObject[src]

impl TryFrom<&'_ str> for PdfObject[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<String> for PdfObject[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<f32> for PdfObject[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<i32> for PdfObject[src]

type Error = Error

The type returned in the event of a conversion error.

impl Write for PdfObject[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.