pub enum Object {
Null,
Bool(bool),
Int(i64),
Real(f64),
String(Vec<u8>),
Name(String),
Array(Vec<Object>),
Dict(Dict),
Stream(Stream),
Ref(ObjRef),
}Variants§
Null
Bool(bool)
Int(i64)
Real(f64)
String(Vec<u8>)
A string’s decoded bytes. Interpretation (PDFDocEncoding, UTF-16BE) is the caller’s.
Name(String)
Array(Vec<Object>)
Dict(Dict)
Stream(Stream)
Ref(ObjRef)
Implementations§
Source§impl Object
impl Object
pub fn as_int(&self) -> Option<i64>
pub fn as_f32(&self) -> Option<f32>
pub fn as_bool(&self) -> Option<bool>
pub fn as_name(&self) -> Option<&str>
pub fn as_string(&self) -> Option<&[u8]>
pub fn as_array(&self) -> Option<&[Object]>
Sourcepub fn as_dict(&self) -> Option<&Dict>
pub fn as_dict(&self) -> Option<&Dict>
The dictionary of a dict or a stream: many entries (/Resources, /Font) may be
either, and callers almost never care which.
pub fn as_stream(&self) -> Option<&Stream>
pub fn as_ref_id(&self) -> Option<ObjRef>
pub fn is_null(&self) -> bool
Trait Implementations§
impl StructuralPartialEq for Object
Auto Trait Implementations§
impl Forget for Object
impl Freeze for Object
impl Move for Object
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnsafeUnpin for Object
impl UnwindSafe for Object
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more