pub struct COSDictionary {
pub entries: BTreeMap<COSName, COSObject>,
}Expand description
A PDF Dictionary object (/Key Value).
Fields§
§entries: BTreeMap<COSName, COSObject>Implementations§
Source§impl COSDictionary
impl COSDictionary
pub fn new() -> Self
pub fn get(&self, key: &str) -> Option<&COSObject>
pub fn get_mut(&mut self, key: &str) -> Option<&mut COSObject>
pub fn set<K: Into<COSName>, V: Into<COSObject>>(&mut self, key: K, val: V)
pub fn remove(&mut self, key: &str) -> Option<COSObject>
pub fn contains_key(&self, key: &str) -> bool
pub fn get_name(&self, key: &str) -> Option<&str>
pub fn get_integer(&self, key: &str) -> Option<i64>
pub fn get_float(&self, key: &str) -> Option<f64>
pub fn get_bool(&self, key: &str) -> Option<bool>
pub fn get_string(&self, key: &str) -> Option<&COSString>
pub fn get_dict(&self, key: &str) -> Option<&COSDictionary>
pub fn get_dict_mut(&mut self, key: &str) -> Option<&mut COSDictionary>
pub fn get_array(&self, key: &str) -> Option<&COSArray>
pub fn get_reference(&self, key: &str) -> Option<ObjectId>
Trait Implementations§
Source§impl Clone for COSDictionary
impl Clone for COSDictionary
Source§fn clone(&self) -> COSDictionary
fn clone(&self) -> COSDictionary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for COSDictionary
impl Debug for COSDictionary
Source§impl Default for COSDictionary
impl Default for COSDictionary
Source§fn default() -> COSDictionary
fn default() -> COSDictionary
Returns the “default value” for a type. Read more
Source§impl From<COSDictionary> for COSObject
impl From<COSDictionary> for COSObject
Source§fn from(d: COSDictionary) -> Self
fn from(d: COSDictionary) -> Self
Converts to this type from the input type.
Source§impl PartialEq for COSDictionary
impl PartialEq for COSDictionary
impl StructuralPartialEq for COSDictionary
Auto Trait Implementations§
impl Freeze for COSDictionary
impl RefUnwindSafe for COSDictionary
impl Send for COSDictionary
impl Sync for COSDictionary
impl Unpin for COSDictionary
impl UnsafeUnpin for COSDictionary
impl UnwindSafe for COSDictionary
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