Anki/rslib/src/prelude.rs
RumovZ bb297b95bc
Global new ignore review limit (#2417)
* Add CardAdder test helper

* Add option to have new cards ignore the review limit

Also entails a lot of refactoring because the old code was deeply
coupled to the previous behaviour.

* Add global option to ignore review limit

* Refactor decrementation

* Unify testing
2023-03-06 19:06:12 +10:00

39 lines
1.2 KiB
Rust

// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
pub use snafu::ResultExt;
pub use crate::card::Card;
pub use crate::card::CardId;
pub use crate::collection::Collection;
pub use crate::config::BoolKey;
pub use crate::deckconfig::DeckConfig;
pub use crate::deckconfig::DeckConfigId;
pub use crate::decks::Deck;
pub use crate::decks::DeckId;
pub use crate::decks::DeckKind;
pub use crate::decks::NativeDeckName;
pub use crate::error::AnkiError;
pub use crate::error::OrInvalid;
pub use crate::error::OrNotFound;
pub use crate::error::Result;
pub use crate::i18n::I18n;
pub use crate::invalid_input;
pub use crate::media::Sha1Hash;
pub use crate::notes::Note;
pub use crate::notes::NoteId;
pub use crate::notetype::Notetype;
pub use crate::notetype::NotetypeId;
pub use crate::ops::Op;
pub use crate::ops::OpChanges;
pub use crate::ops::OpOutput;
pub use crate::require;
pub use crate::revlog::RevlogId;
pub use crate::search::SearchBuilder;
pub use crate::search::TryIntoSearch;
#[cfg(test)]
pub(crate) use crate::tests::*;
pub use crate::timestamp::TimestampMillis;
pub use crate::timestamp::TimestampSecs;
pub(crate) use crate::types::IntoNewtypeVec;
pub use crate::types::Usn;