pub struct PdfArray { /* private fields */ }Expand description
A PDF array object, e.g., [ 1 2 3 ].
Implementations§
Source§impl PdfArray
impl PdfArray
pub fn new() -> Self
pub fn size(&self) -> usize
pub fn push(&mut self, object: PdfObject)
pub fn insert(&mut self, index: usize, object: PdfObject)
pub fn remove(&mut self, index: usize) -> PdfObject
pub fn get(&self, index: usize) -> Option<&PdfObject>
pub fn set(&mut self, index: usize, object: PdfObject)
pub fn as_slice(&self) -> &[PdfObject]
Trait Implementations§
Source§impl PdfObjectTrait for PdfArray
impl PdfObjectTrait for PdfArray
Source§fn size_in_bytes(&self) -> usize
fn size_in_bytes(&self) -> usize
Return the size in bytes when serialized.
Auto Trait Implementations§
impl Freeze for PdfArray
impl RefUnwindSafe for PdfArray
impl Send for PdfArray
impl Sync for PdfArray
impl Unpin for PdfArray
impl UnsafeUnpin for PdfArray
impl UnwindSafe for PdfArray
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