pub struct Selector { /* private fields */ }Expand description
A parsed selector that can be applied on CSV headers to create a
crate::Selection.
Implementations§
Source§impl Selector
impl Selector
pub fn is_empty(&self) -> bool
pub fn invert(&mut self)
pub fn select<'a, H>(
&self,
first_record: H,
use_names: bool,
) -> Result<Selection, Error>where
H: IntoIterator<Item = &'a [u8]>,
pub fn select_one<'a, H>(
&self,
first_record: H,
use_names: bool,
) -> Result<usize, Error>where
H: IntoIterator<Item = &'a [u8]>,
pub fn retain_known<'a, H>(&mut self, headers: H) -> Vec<usize>where
H: IntoIterator<Item = &'a [u8]>,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnsafeUnpin for Selector
impl UnwindSafe for Selector
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