pub struct PdfArray(pub Vec<PdfObject>);Tuple Fields§
§0: Vec<PdfObject>Implementations§
Source§impl PdfArray
impl PdfArray
pub fn new() -> Self
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates an array with room for capacity elements, avoiding the
grow-realloc when the size is known up front.
pub fn push(&mut self, obj: PdfObject)
pub fn get(&self, index: usize) -> Option<&PdfObject>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
impl StructuralPartialEq for PdfArray
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