[−][src]Struct vocage::VocaData
Fields
session: VocaSession
cards: Vec<VocaCard>
comments: Vec<(usize, String)>
Implementations
impl VocaData
[src]
pub fn from_file(filename: &str, reset: bool) -> Result<Self, Error>
[src]
pub fn random_index(
&self,
rng: &mut impl Rng,
decks: Option<&Vec<u8>>,
due_only: bool,
seen_only: bool
) -> Option<(usize, usize)>
[src]
&self,
rng: &mut impl Rng,
decks: Option<&Vec<u8>>,
due_only: bool,
seen_only: bool
) -> Option<(usize, usize)>
pub fn next_index(
&self,
index: usize,
decks: Option<&Vec<u8>>,
due_only: bool,
seen_only: bool,
inclusive: bool
) -> Option<(usize, usize)>
[src]
&self,
index: usize,
decks: Option<&Vec<u8>>,
due_only: bool,
seen_only: bool,
inclusive: bool
) -> Option<(usize, usize)>
pub fn pick_card<'a>(
&'a self,
rng: &mut impl Rng,
decks: Option<&Vec<u8>>,
due_only: bool,
seen_only: bool
) -> Option<&'a VocaCard>
[src]
&'a self,
rng: &mut impl Rng,
decks: Option<&Vec<u8>>,
due_only: bool,
seen_only: bool
) -> Option<&'a VocaCard>
pub fn pick_card_mut<'a>(
&'a mut self,
rng: &mut impl Rng,
decks: Option<&Vec<u8>>,
due_only: bool,
seen_only: bool
) -> Option<&'a mut VocaCard>
[src]
&'a mut self,
rng: &mut impl Rng,
decks: Option<&Vec<u8>>,
due_only: bool,
seen_only: bool
) -> Option<&'a mut VocaCard>
pub fn pick_next_card<'a>(
&'a self,
index: usize,
decks: Option<&Vec<u8>>,
due_only: bool,
seen_only: bool,
inclusive: bool
) -> Option<&'a VocaCard>
[src]
&'a self,
index: usize,
decks: Option<&Vec<u8>>,
due_only: bool,
seen_only: bool,
inclusive: bool
) -> Option<&'a VocaCard>
pub fn pick_next_card_mut<'a>(
&'a mut self,
index: usize,
decks: Option<&Vec<u8>>,
due_only: bool,
seen_only: bool,
inclusive: bool
) -> Option<&'a mut VocaCard>
[src]
&'a mut self,
index: usize,
decks: Option<&Vec<u8>>,
due_only: bool,
seen_only: bool,
inclusive: bool
) -> Option<&'a mut VocaCard>
pub fn write(&self, reset: bool) -> Result<(), Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for VocaData
impl Send for VocaData
impl Sync for VocaData
impl Unpin for VocaData
impl UnwindSafe for VocaData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,