pub struct PackagesMatrix { /* private fields */ }Expand description
A validated, owned view of a CRAN-like PACKAGES.rds character matrix.
Implementations§
Source§impl PackagesMatrix
impl PackagesMatrix
Sourcepub fn from_object(object: &RObject) -> Result<Self, ViewError>
pub fn from_object(object: &RObject) -> Result<Self, ViewError>
Validates and copies a PACKAGES.rds character matrix.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn column_names(&self) -> impl ExactSizeIterator<Item = &str> + '_
pub fn column(&self, name: &str) -> Option<PackagesColumn<'_>>
pub fn row(&self, index: usize) -> Option<PackagesRow<'_>>
pub fn rows(&self) -> impl ExactSizeIterator<Item = PackagesRow<'_>> + '_
Trait Implementations§
Source§impl Clone for PackagesMatrix
impl Clone for PackagesMatrix
Source§fn clone(&self) -> PackagesMatrix
fn clone(&self) -> PackagesMatrix
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PackagesMatrix
impl Debug for PackagesMatrix
impl Eq for PackagesMatrix
Source§impl PartialEq for PackagesMatrix
impl PartialEq for PackagesMatrix
impl StructuralPartialEq for PackagesMatrix
Auto Trait Implementations§
impl Freeze for PackagesMatrix
impl RefUnwindSafe for PackagesMatrix
impl Send for PackagesMatrix
impl Sync for PackagesMatrix
impl Unpin for PackagesMatrix
impl UnsafeUnpin for PackagesMatrix
impl UnwindSafe for PackagesMatrix
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