[][src]Enum lopdf::Object

pub enum Object {
    Null,
    Boolean(bool),
    Integer(i64),
    Real(f64),
    Name(Vec<u8>),
    String(Vec<u8>, StringFormat),
    Array(Vec<Object>),
    Dictionary(Dictionary),
    Stream(Stream),
    Reference(ObjectId),
}

Basic PDF object types defined in an enum.

Variants

Null
Boolean(bool)
Integer(i64)
Real(f64)
Name(Vec<u8>)
String(Vec<u8>, StringFormat)
Array(Vec<Object>)
Dictionary(Dictionary)
Stream(Stream)
Reference(ObjectId)

Implementations

impl Object[src]

pub fn string_literal<S: Into<Vec<u8>>>(s: S) -> Self[src]

pub fn is_null(&self) -> bool[src]

pub fn as_i64(&self) -> Result<i64>[src]

pub fn as_f64(&self) -> Result<f64>[src]

pub fn as_name(&self) -> Result<&[u8]>[src]

pub fn as_name_str(&self) -> Result<&str>[src]

pub fn as_reference(&self) -> Result<ObjectId>[src]

pub fn as_array(&self) -> Result<&Vec<Object>>[src]

pub fn as_array_mut(&mut self) -> Result<&mut Vec<Object>>[src]

pub fn as_dict(&self) -> Result<&Dictionary>[src]

pub fn as_dict_mut(&mut self) -> Result<&mut Dictionary>[src]

pub fn as_stream(&self) -> Result<&Stream>[src]

pub fn as_stream_mut(&mut self) -> Result<&mut Stream>[src]

pub fn type_name(&self) -> Result<&str>[src]

impl Object[src]

Trait Implementations

impl Clone for Object[src]

impl Debug for Object[src]

impl<'a> From<&'a str> for Object[src]

impl From<(u32, u16)> for Object[src]

impl From<DateTime<Local>> for Object[src]

impl From<DateTime<Utc>> for Object[src]

impl From<Dictionary> for Object[src]

impl From<Stream> for Object[src]

impl From<String> for Object[src]

impl From<Tm> for Object[src]

impl From<Vec<Object>> for Object[src]

impl From<bool> for Object[src]

impl From<f32> for Object[src]

impl From<f64> for Object[src]

impl From<i16> for Object[src]

impl From<i32> for Object[src]

impl From<i64> for Object[src]

impl From<i8> for Object[src]

impl From<u16> for Object[src]

impl From<u32> for Object[src]

impl From<u8> for Object[src]

Auto Trait Implementations

impl RefUnwindSafe for Object

impl Send for Object

impl Sync for Object

impl Unpin for Object

impl UnwindSafe for Object

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, 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.