pub struct ObjectStream {
pub objects: BTreeMap<(u32, u16), Object>,
/* private fields */
}Fields§
§objects: BTreeMap<(u32, u16), Object>Implementations§
Source§impl ObjectStream
impl ObjectStream
Sourcepub fn builder() -> ObjectStreamBuilder
pub fn builder() -> ObjectStreamBuilder
Create a builder for constructing new object streams
Sourcepub fn add_object(&mut self, id: (u32, u16), obj: Object) -> Result<(), Error>
pub fn add_object(&mut self, id: (u32, u16), obj: Object) -> Result<(), Error>
Add an object to the stream
Sourcepub fn object_count(&self) -> usize
pub fn object_count(&self) -> usize
Get the number of objects in the stream
Sourcepub fn build_stream_content(&self) -> Result<Vec<u8>, Error>
pub fn build_stream_content(&self) -> Result<Vec<u8>, Error>
Build the stream content in the format required by PDF spec
Sourcepub fn to_stream_object(&self) -> Result<Stream, Error>
pub fn to_stream_object(&self) -> Result<Stream, Error>
Convert to a Stream object ready for insertion into a PDF
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ObjectStream
impl RefUnwindSafe for ObjectStream
impl Send for ObjectStream
impl Sync for ObjectStream
impl Unpin for ObjectStream
impl UnwindSafe for ObjectStream
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