pub enum PdfObj {
Null,
Bool(bool),
Int(i64),
Real(f64),
Name(Vec<u8>),
Str(Vec<u8>),
Array(Vec<PdfObj>),
Dict(PdfDict),
Stream {
dict: PdfDict,
data_offset: usize,
data_len: usize,
},
Ref(u32, u16),
}Expand description
A PDF object parsed from file data.
Variants§
Null
Bool(bool)
Int(i64)
Real(f64)
Name(Vec<u8>)
Name object (without leading /).
Str(Vec<u8>)
String object (literal or hex, already decoded).
Array(Vec<PdfObj>)
Dict(PdfDict)
Stream
Stream: dictionary + location of raw data in source.
Ref(u32, u16)
Indirect reference (object number, generation number).
Implementations§
Trait Implementations§
impl StructuralPartialEq for PdfObj
Auto Trait Implementations§
impl Freeze for PdfObj
impl RefUnwindSafe for PdfObj
impl Send for PdfObj
impl Sync for PdfObj
impl Unpin for PdfObj
impl UnsafeUnpin for PdfObj
impl UnwindSafe for PdfObj
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more