Struct speki_backend::CardViewer
source · pub struct CardViewer { /* private fields */ }Expand description
Struct meant for viewing cards, sort of a wrapper around FilterUtil.
Implementations§
source§impl CardViewer
impl CardViewer
pub fn new(cards: Vec<Id>) -> Self
pub fn total_qty(&self) -> usize
pub fn set_idx(&mut self, idx: usize)
pub fn filtered_qty(&self) -> usize
pub fn go_forward(&mut self)
pub fn filtered_cards(&self) -> &Vec<Id>
pub fn is_view(&self) -> bool
pub fn is_list(&self) -> bool
pub fn filter_ref(&self) -> &FilterUtil
pub fn enter_view(&mut self)
pub fn enter_list(&mut self)
pub fn idx(&self) -> usize
pub fn selected_card_id(&self) -> Id
pub fn selected_card(&self, cache: &mut CardCache) -> Arc<SavedCard>
pub fn go_back(&mut self)
pub fn filter_mut(&mut self) -> &mut FilterUtil
pub fn re_apply_rules(&mut self, cache: &mut CardCache)
pub fn filter(self, filter: FilterUtil, cache: &mut CardCache) -> Self
pub fn toggle_mode(&mut self)
Trait Implementations§
source§impl Clone for CardViewer
impl Clone for CardViewer
source§fn clone(&self) -> CardViewer
fn clone(&self) -> CardViewer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for CardViewer
impl Send for CardViewer
impl Sync for CardViewer
impl Unpin for CardViewer
impl UnwindSafe for CardViewer
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