pub enum PdfObject {
Null,
Boolean(bool),
Integer(i64),
Real(f64),
Name(PdfName),
String(PdfString),
Array(PdfArray),
Dictionary(PdfDictionary),
Stream(PdfStream),
Reference(ObjectId),
}Variants§
Null
Boolean(bool)
Integer(i64)
Real(f64)
Name(PdfName)
String(PdfString)
Array(PdfArray)
Dictionary(PdfDictionary)
Stream(PdfStream)
Reference(ObjectId)
Implementations§
Source§impl PdfObject
impl PdfObject
pub fn is_null(&self) -> bool
pub fn as_bool(&self) -> Option<bool>
pub fn as_integer(&self) -> Option<i64>
pub fn as_real(&self) -> Option<f64>
pub fn as_name(&self) -> Option<&PdfName>
pub fn as_string(&self) -> Option<&PdfString>
pub fn as_array(&self) -> Option<&PdfArray>
pub fn as_dict(&self) -> Option<&PdfDictionary>
pub fn as_stream(&self) -> Option<&PdfStream>
pub fn as_reference(&self) -> Option<ObjectId>
Trait Implementations§
impl StructuralPartialEq for PdfObject
Auto Trait Implementations§
impl Freeze for PdfObject
impl RefUnwindSafe for PdfObject
impl Send for PdfObject
impl Sync for PdfObject
impl Unpin for PdfObject
impl UnsafeUnpin for PdfObject
impl UnwindSafe for PdfObject
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