pub struct PdfDict(pub BTreeMap<PdfName, PdfObject>);Expand description
PDF dictionary: ordered map of Name → PdfObject.
Tuple Fields§
§0: BTreeMap<PdfName, PdfObject>Implementations§
Source§impl PdfDict
impl PdfDict
pub fn new() -> Self
pub fn get(&self, key: &str) -> Option<&PdfObject>
pub fn insert(&mut self, key: PdfName, value: PdfObject)
pub fn get_name(&self, key: &str) -> Result<&str>
pub fn get_i64(&self, key: &str) -> Result<i64>
pub fn get_f64(&self, key: &str) -> Result<f64>
pub fn get_array(&self, key: &str) -> Result<&[PdfObject]>
pub fn get_dict(&self, key: &str) -> Result<&PdfDict>
pub fn get_ref(&self, key: &str) -> Result<ObjectId>
pub fn get_rect(&self, key: &str) -> Result<Rect>
Trait Implementations§
impl StructuralPartialEq for PdfDict
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