Enum lopdf::Object
[−]
[src]
pub enum Object { Null, Boolean(bool), Integer(i64), Real(f64), Name(String), 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(String)
String(Vec<u8>, StringFormat)
Array(Vec<Object>)
Dictionary(Dictionary)
Stream(Stream)
Reference(ObjectId)
Methods
impl Object
[src]
fn is_null(&self) -> bool
fn as_i64(&self) -> Option<i64>
fn as_name(&self) -> Option<&str>
fn as_reference(&self) -> Option<ObjectId>
fn as_array(&self) -> Option<&Vec<Object>>
Trait Implementations
impl Debug for Object
[src]
impl Clone for Object
[src]
fn clone(&self) -> Object
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl From<bool> for Object
[src]
impl From<i64> for Object
[src]
impl From<f64> for Object
[src]
impl From<String> for Object
[src]
impl<'a> From<&'a str> for Object
[src]
impl From<Vec<Object>> for Object
[src]
impl From<Dictionary> for Object
[src]
fn from(dcit: Dictionary) -> Self
Performs the conversion.