Enum pdf::file::Object
[−]
[src]
pub enum Object { Integer(i32), RealNumber(f32), Boolean(bool), String(Vec<u8>), HexString(Vec<u8>), Stream(Stream), Dictionary(Dictionary), Array(Vec<Object>), Reference(ObjectId), Name(String), Null, }
Variants
Integer(i32)
RealNumber(f32)
Boolean(bool)
String(Vec<u8>)
HexString(Vec<u8>)
Each byte is 0-15
Stream(Stream)
Dictionary(Dictionary)
Array(Vec<Object>)
Reference(ObjectId)
Name(String)
Null
Methods
impl Object
[src]
fn as_integer(&self) -> Result<i32>
fn as_reference(&self) -> Result<ObjectId>
fn as_array(&self) -> Result<&Vec<Object>>
fn as_integer_array(&self) -> Result<Vec<i32>>
fn as_dictionary(&self) -> Result<&Dictionary>
fn as_stream(&self) -> Result<&Stream>
fn into_array(self) -> Result<Vec<Object>>
fn into_integer_array(self) -> Result<Vec<i32>>
fn into_dictionary(self) -> Result<Dictionary>
fn into_stream(self) -> Result<Stream>
fn type_str(&self) -> &'static str
Trait Implementations
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