Struct printpdf::xobject::XObjectList
source · pub struct XObjectList { /* private fields */ }
Expand description
List of XObjects
Implementations§
source§impl XObjectList
impl XObjectList
sourcepub fn add_xobject(&mut self, xobj: XObject) -> XObjectRef
pub fn add_xobject(&mut self, xobj: XObject) -> XObjectRef
Adds a new XObject to the list
sourcepub fn into_with_document(self, doc: &mut Document) -> Dictionary
pub fn into_with_document(self, doc: &mut Document) -> Dictionary
Same as Into<lopdf::Dictionary>
, but since the dictionary
items in an XObject dictionary are streams and must be added to
the document as references, this function needs an additional
access to the PDF document so that we can add the streams first and
then track the references to them.
Trait Implementations§
source§impl Clone for XObjectList
impl Clone for XObjectList
source§fn clone(&self) -> XObjectList
fn clone(&self) -> XObjectList
Returns a copy of the value. Read more
1.0.0 · 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 XObjectList
impl Debug for XObjectList
source§impl Default for XObjectList
impl Default for XObjectList
source§fn default() -> XObjectList
fn default() -> XObjectList
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for XObjectList
impl Send for XObjectList
impl Sync for XObjectList
impl Unpin for XObjectList
impl UnwindSafe for XObjectList
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