pub struct Array(/* private fields */);Expand description
PDF Array - Ordered collection of objects
Implementations§
Source§impl Array
impl Array
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn push(&mut self, obj: impl Into<Object>)
pub fn get(&self, index: usize) -> Option<&Object>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = &Object>
pub fn as_slice(&self) -> &[Object]
pub fn into_vec(self) -> Vec<Object>
Trait Implementations§
Source§impl FromIterator<Object> for Array
impl FromIterator<Object> for Array
impl StructuralPartialEq for Array
Auto Trait Implementations§
impl Freeze for Array
impl RefUnwindSafe for Array
impl Send for Array
impl Sync for Array
impl Unpin for Array
impl UnsafeUnpin for Array
impl UnwindSafe for Array
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