mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-02-01 00:36:40 +01:00
last small wave of 15 errors?
This commit is contained in:
parent
4fe51b5267
commit
872c2d94d6
11 changed files with 181 additions and 189 deletions
|
|
@ -1,19 +1,16 @@
|
|||
use crate::*;
|
||||
|
||||
impl<T: Has<Option<Selection>>> HasSelection for T {}
|
||||
impl<T: Has<Selection>> HasSelection for T {}
|
||||
|
||||
pub trait HasSelection: Has<Option<Selection>> {
|
||||
fn selection (&self) -> Option<&Selection> {
|
||||
self.get().as_ref()
|
||||
pub trait HasSelection: Has<Selection> {
|
||||
fn selection (&self) -> &Selection {
|
||||
self.get()
|
||||
}
|
||||
fn selection_mut (&mut self) -> &mut Option<Selection> {
|
||||
fn selection_mut (&mut self) -> &mut Selection {
|
||||
self.get_mut()
|
||||
}
|
||||
}
|
||||
|
||||
impl Arrangement {
|
||||
}
|
||||
|
||||
/// Represents the current user selection in the arranger
|
||||
#[derive(PartialEq, Clone, Copy, Debug, Default)]
|
||||
pub enum Selection {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue