pub struct Dictionary { /* private fields */ }Expand description
Represents a PDF dictionary object.
Dictionaries are associative tables containing key-value pairs where keys are names and values can be any PDF object type.
Implementations§
Source§impl Dictionary
impl Dictionary
Sourcepub fn get(&self, key: &str) -> Option<&PDFObject>
pub fn get(&self, key: &str) -> Option<&PDFObject>
Returns the value of the entry with the given key.
Sourcepub fn contain(&self, key: &str) -> bool
pub fn contain(&self, key: &str) -> bool
Returns true if the dictionary contains the given key.
Sourcepub fn get_named_value(&self, key: &str) -> Option<&String>
pub fn get_named_value(&self, key: &str) -> Option<&String>
Returns the value of the entry with the given key as a name.
Sourcepub fn get_u64_num(&self, key: &str) -> Option<u64>
pub fn get_u64_num(&self, key: &str) -> Option<u64>
Returns the value of the entry with the given key as a u64.
Sourcepub fn named_value_was(&self, keys: &str, except: &str) -> bool
pub fn named_value_was(&self, keys: &str, except: &str) -> bool
Returns true if the value of the entry with the given key is the given name.
Sourcepub fn get_array_value(&self, key: &str) -> Option<&[PDFObject]>
pub fn get_array_value(&self, key: &str) -> Option<&[PDFObject]>
Returns the value of the entry with the given key as an array.
Auto Trait Implementations§
impl Freeze for Dictionary
impl RefUnwindSafe for Dictionary
impl Send for Dictionary
impl Sync for Dictionary
impl Unpin for Dictionary
impl UnwindSafe for Dictionary
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