pub struct Filter { /* private fields */ }Implementations§
Source§impl Filter
impl Filter
pub fn new(label: impl Into<Cow<'static, str>>) -> Self
pub fn placeholder(self, text: impl Into<Cow<'static, str>>) -> Self
pub fn hint(self, text: impl Into<Cow<'static, str>>) -> Self
pub fn keys(self, keys: Keys) -> Self
pub fn start_keys(self, keys: &'static [Key]) -> Self
pub fn clear_keys(self, keys: &'static [Key]) -> Self
pub fn input(self, input: Input) -> Self
pub fn typing(&self) -> bool
pub fn query(&self) -> &str
pub fn active(&self) -> bool
pub fn shown(&self) -> &[usize]
pub fn current(&self) -> Option<usize>
pub fn list(&self) -> &List
pub fn list_mut(&mut self) -> &mut List
pub fn sift<R>( &mut self, rows: &[R], keeps: impl Fn(&R, &str) -> bool, line: impl Fn(&R) -> Row, )
pub fn key(&mut self, key: KeyEvent) -> Turn
pub fn paste(&mut self, text: &str) -> Turn
pub fn bar(&self) -> Option<InputBar<'_>>
pub fn view<'a>( &'a mut self, columns: &'a [Column<'a>], palette: &Palette, ) -> ListView<'a>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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