mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
wip: refactor pt.24: 45 errors
This commit is contained in:
parent
ff4698d046
commit
da074eb5fa
5 changed files with 120 additions and 199 deletions
|
|
@ -2,7 +2,8 @@ use crate::*;
|
|||
|
||||
pub struct PhrasePoolView<E: Engine> {
|
||||
_engine: PhantomData<E>,
|
||||
pub model: PhrasePool,
|
||||
/// Collection of phrases
|
||||
pub model: Vec<Arc<RwLock<Phrase>>>,
|
||||
/// Selected phrase
|
||||
pub phrase: usize,
|
||||
/// Scroll offset
|
||||
|
|
@ -24,7 +25,7 @@ pub enum PhrasePoolMode {
|
|||
}
|
||||
|
||||
impl<E: Engine> PhrasePoolView<E> {
|
||||
pub fn new (model: PhrasePool) -> Self {
|
||||
pub fn new (model: Vec<Arc<RwLock<Phrase>>>) -> Self {
|
||||
Self {
|
||||
_engine: Default::default(),
|
||||
scroll: 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue