pub struct PdfDict { /* private fields */ }Expand description
A PDF dictionary object, e.g., << /Type /Page /MediaBox [ 0 0 612 792 ] >>.
Uses BTreeMap for deterministic key ordering (sorted alphabetically).
Implementations§
Source§impl PdfDict
impl PdfDict
pub fn new() -> Self
pub fn set(&mut self, key: PdfName, value: PdfObject)
pub fn get(&self, key: &PdfName) -> Option<&PdfObject>
pub fn has(&self, key: &PdfName) -> bool
pub fn delete(&mut self, key: &PdfName)
pub fn keys(&self) -> Vec<&PdfName>
pub fn values(&self) -> Vec<&PdfObject>
pub fn entries(&self) -> Vec<(&PdfName, &PdfObject)>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl PdfObjectTrait for PdfDict
impl PdfObjectTrait for PdfDict
Source§fn size_in_bytes(&self) -> usize
fn size_in_bytes(&self) -> usize
Return the size in bytes when serialized.
Auto Trait Implementations§
impl Freeze for PdfDict
impl RefUnwindSafe for PdfDict
impl Send for PdfDict
impl Sync for PdfDict
impl Unpin for PdfDict
impl UnsafeUnpin for PdfDict
impl UnwindSafe for PdfDict
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