pub struct Dictionary { /* private fields */ }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.