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 duplicate 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 Freeze for CardViewer
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