pub struct QPdfDictionary { /* private fields */ }Expand description
QPdfDictionary wraps a QPdfObject for dictionary-related operations
Implementations§
Source§impl QPdfDictionary
impl QPdfDictionary
Sourcepub fn get_page_content_data(&self) -> Result<QPdfStreamData>
pub fn get_page_content_data(&self) -> Result<QPdfStreamData>
Get contents from the page object
Sourcepub fn get(&self, key: &str) -> Option<QPdfObject>
pub fn get(&self, key: &str) -> Option<QPdfObject>
Get dictionary element for the specified key
Sourcepub fn set<V: AsRef<QPdfObject>>(&self, key: &str, value: V)
pub fn set<V: AsRef<QPdfObject>>(&self, key: &str, value: V)
Set dictionary element for the specified key
Trait Implementations§
Source§impl AsRef<QPdfObject> for QPdfDictionary
impl AsRef<QPdfObject> for QPdfDictionary
Source§fn as_ref(&self) -> &QPdfObject
fn as_ref(&self) -> &QPdfObject
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Display for QPdfDictionary
impl Display for QPdfDictionary
Source§impl From<QPdfDictionary> for QPdfObject
impl From<QPdfDictionary> for QPdfObject
Source§fn from(dict: QPdfDictionary) -> Self
fn from(dict: QPdfDictionary) -> Self
Converts to this type from the input type.
Source§impl From<QPdfObject> for QPdfDictionary
impl From<QPdfObject> for QPdfDictionary
Source§fn from(obj: QPdfObject) -> Self
fn from(obj: QPdfObject) -> Self
Converts to this type from the input type.
Source§impl QPdfObjectLike for QPdfDictionary
impl QPdfObjectLike for QPdfDictionary
Source§fn as_object(&self) -> &QPdfObject
fn as_object(&self) -> &QPdfObject
Return inner object
fn owner(&self) -> QPdf
Source§fn get_type(&self) -> QPdfObjectType
fn get_type(&self) -> QPdfObjectType
Get this object type
Source§fn is_operator(&self) -> bool
fn is_operator(&self) -> bool
Return true if this is an operator object
Source§fn is_indirect(&self) -> bool
fn is_indirect(&self) -> bool
Return true if this is an indirect object
Source§fn as_binary_string(&self) -> Vec<u8> ⓘ
fn as_binary_string(&self) -> Vec<u8> ⓘ
Get binary string value
Source§fn get_generation(&self) -> u32
fn get_generation(&self) -> u32
Get generation of the indirect object
fn into_indirect(self) -> QPdfObject
Auto Trait Implementations§
impl !RefUnwindSafe for QPdfDictionary
impl !Send for QPdfDictionary
impl !Sync for QPdfDictionary
impl !UnwindSafe for QPdfDictionary
impl Forget for QPdfDictionary
impl Freeze for QPdfDictionary
impl Move for QPdfDictionary
impl Unpin for QPdfDictionary
impl UnsafeUnpin for QPdfDictionary
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