[−][src]Struct mupdf::PdfObject
Implementations
impl PdfObject
[src]
pub fn try_clone(&self) -> Result<Self, Error>
[src]
pub fn new_null() -> PdfObjectⓘ
[src]
pub fn new_bool(b: bool) -> 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]
&self,
key: K
) -> Result<Option<Self>, Error>
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]
&mut self,
key: K,
value: Self
) -> Result<(), Error>
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.
pub fn try_from(s: &str) -> Result<PdfObject, Self::Error>
[src]
impl TryFrom<String> for PdfObject
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(s: String) -> Result<PdfObject, Self::Error>
[src]
impl TryFrom<f32> for PdfObject
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(f: f32) -> Result<PdfObject, Self::Error>
[src]
impl TryFrom<i32> for PdfObject
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(i: i32) -> Result<PdfObject, Self::Error>
[src]
impl Write for PdfObject
[src]
pub fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
pub fn flush(&mut self) -> Result<()>
[src]
pub fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Error>
1.36.0[src]
pub fn is_write_vectored(&self) -> bool
[src]
pub fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
pub fn write_all_vectored(
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
[src]
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
pub fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), Error>
1.0.0[src]
pub fn by_ref(&mut self) -> &mut Self
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for PdfObject
[src]
impl !Send for PdfObject
[src]
impl !Sync for PdfObject
[src]
impl Unpin for PdfObject
[src]
impl UnwindSafe for PdfObject
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<W> WriteBytesExt for W where
W: Write + ?Sized,
W: Write + ?Sized,
pub fn write_u8(&mut self, n: u8) -> Result<(), Error>
pub fn write_i8(&mut self, n: i8) -> Result<(), Error>
pub fn write_u16<T>(&mut self, n: u16) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_i16<T>(&mut self, n: i16) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_u24<T>(&mut self, n: u32) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_i24<T>(&mut self, n: i32) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_u32<T>(&mut self, n: u32) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_i32<T>(&mut self, n: i32) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_u48<T>(&mut self, n: u64) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_i48<T>(&mut self, n: i64) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_u64<T>(&mut self, n: u64) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_i64<T>(&mut self, n: i64) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_u128<T>(&mut self, n: u128) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_i128<T>(&mut self, n: i128) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_uint<T>(&mut self, n: u64, nbytes: usize) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_int<T>(&mut self, n: i64, nbytes: usize) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_uint128<T>(&mut self, n: u128, nbytes: usize) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_int128<T>(&mut self, n: i128, nbytes: usize) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_f32<T>(&mut self, n: f32) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_f64<T>(&mut self, n: f64) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,