mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
add Gettable, Mutable, InteriorMutable
This commit is contained in:
parent
598319af35
commit
53f786543d
3 changed files with 58 additions and 54 deletions
|
|
@ -8,29 +8,6 @@ pub mod midi; pub(crate) use self::midi::*;
|
|||
pub mod audio; pub(crate) use self::audio::*;
|
||||
//pub mod plugin; pub(crate) use self::plugin::*;
|
||||
|
||||
/// Standard result type.
|
||||
pub type Usually<T> = Result<T, Box<dyn Error>>;
|
||||
|
||||
/// Standard optional result type.
|
||||
pub type Perhaps<T> = Result<Option<T>, Box<dyn Error>>;
|
||||
|
||||
/// Define and reexport submodules.
|
||||
#[macro_export] macro_rules! submod {
|
||||
($($name:ident)*) => { $(mod $name; pub use self::$name::*;)* };
|
||||
}
|
||||
|
||||
/// Define public modules.
|
||||
#[macro_export] macro_rules! pubmod {
|
||||
($($name:ident)*) => { $(pub mod $name;)* };
|
||||
}
|
||||
|
||||
/// Define test modules.
|
||||
#[macro_export] macro_rules! testmod {
|
||||
($($name:ident)*) => { $(#[cfg(test)] mod $name;)* };
|
||||
}
|
||||
|
||||
testmod! { test }
|
||||
|
||||
pub(crate) use clap::{self, Parser};
|
||||
|
||||
pub use ::better_panic;
|
||||
|
|
@ -48,7 +25,6 @@ pub(crate) use std::path::PathBuf;
|
|||
pub(crate) use std::ffi::OsString;
|
||||
pub(crate) use std::time::Duration;
|
||||
pub(crate) use std::io::{Stdout, stdout};
|
||||
pub(crate) use std::error::Error;
|
||||
pub(crate) use std::ops::{Add, Sub, Mul, Div, Rem};
|
||||
pub(crate) use std::cmp::{Ord, Eq, PartialEq};
|
||||
pub(crate) use std::fmt::{Debug, Display};
|
||||
|
|
@ -80,3 +56,5 @@ pub(crate) use ::palette::{
|
|||
convert::*,
|
||||
okhsl::*
|
||||
};
|
||||
|
||||
testmod! { test }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue