StaticDataFrame

Struct StaticDataFrame 

Source
pub struct StaticDataFrame<const ROWS: usize, const COLS: usize> {
    pub columns: [StaticTypedArray<ROWS>; COLS],
    pub names: [&'static str; COLS],
}

Fields§

§columns: [StaticTypedArray<ROWS>; COLS]§names: [&'static str; COLS]

Trait Implementations§

Source§

impl<const ROWS: usize, const COLS: usize> DataFrameAdapter<'_> for StaticDataFrame<ROWS, COLS>

Source§

type DataFrame = BasicDataFrame

Concrete type implementing this trait.
Source§

type Series = BasicSeries

Type representing the Series (columns) in the DataFrame.
Source§

type LibError = BasicdfError

Error type for fallible operations from the backend library.
Source§

fn column_names(&self) -> Vec<String>

Returns the column names of the DataFrame
Source§

fn col( &self, name: &str, ) -> Result<<StaticDataFrame<ROWS, COLS> as DataFrameAdapter<'_>>::Series, <StaticDataFrame<ROWS, COLS> as DataFrameAdapter<'_>>::LibError>

Returns the column of the DataFrame by name Read more
Source§

fn select( &self, names: Vec<&str>, ) -> Result<<StaticDataFrame<ROWS, COLS> as DataFrameAdapter<'_>>::DataFrame, <StaticDataFrame<ROWS, COLS> as DataFrameAdapter<'_>>::LibError>

Returns a DataFrame of columns selected by name Read more
Source§

fn shape(&self) -> (usize, usize)

Returns the size of the DataFrame
Source§

impl<const ROWS: usize, const COLS: usize> Debug for StaticDataFrame<ROWS, COLS>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<const ROWS: usize, const COLS: usize> Freeze for StaticDataFrame<ROWS, COLS>

§

impl<const ROWS: usize, const COLS: usize> RefUnwindSafe for StaticDataFrame<ROWS, COLS>

§

impl<const ROWS: usize, const COLS: usize> Send for StaticDataFrame<ROWS, COLS>

§

impl<const ROWS: usize, const COLS: usize> Sync for StaticDataFrame<ROWS, COLS>

§

impl<const ROWS: usize, const COLS: usize> Unpin for StaticDataFrame<ROWS, COLS>

§

impl<const ROWS: usize, const COLS: usize> UnwindSafe for StaticDataFrame<ROWS, COLS>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.