pub struct Columns<'a> {
pub cols: Vec<usize>,
pub max: usize,
pub select_all: bool,
pub parsed: bool,
/* private fields */
}
Fields§
§cols: Vec<usize>
§max: usize
§select_all: bool
§parsed: bool
Implementations§
Source§impl<'a> Columns<'a>
impl<'a> Columns<'a>
pub fn new(raw: &str) -> Columns<'_>
pub fn total_col(self, total: usize) -> Self
pub fn total_col_of(self, path: &'a Path, sep: char, quote: char) -> Self
pub fn parse(self) -> Self
pub fn iter(&self) -> impl Iterator<Item = &usize>
pub fn artificial_cols_with_appended_n(&self) -> Vec<String>
pub fn artificial_n_cols(&self, n: usize) -> Vec<String>
pub fn select_owned_string(&self, all: &[&str]) -> String
pub fn select_owned_string_from_excel_datatype(&self, all: &[Data]) -> String
pub fn select_owned_vec_from_excel_datatype(&self, all: &[Data]) -> Vec<String>
pub fn select_owned_vector_and_append_n(&self, all: &[&str]) -> Vec<String>
pub fn col_vec_or_length_of(&self, n: usize) -> Vec<usize>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Columns<'a>
impl<'a> RefUnwindSafe for Columns<'a>
impl<'a> Send for Columns<'a>
impl<'a> Sync for Columns<'a>
impl<'a> Unpin for Columns<'a>
impl<'a> UnwindSafe for Columns<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more