mirror of
https://github.com/Dummi26/mers.git
synced 2025-04-28 18:16:05 +02:00
make some types/fields public
This commit is contained in:
parent
8c235a98aa
commit
2d373d1ba7
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "mers"
|
||||
version = "0.3.1"
|
||||
version = "0.3.2"
|
||||
edition = "2021"
|
||||
license = "MIT OR Apache-2.0"
|
||||
description = "dynamically typed but type-checked programming language"
|
||||
@ -11,6 +11,6 @@ repository = "https://github.com/Dummi26/mers"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
mers_lib = "0.3.1"
|
||||
mers_lib = "0.3.2"
|
||||
# mers_lib = { path = "../mers_lib", features = ["parse"] }
|
||||
clap = { version = "4.3.19", features = ["derive"] }
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "mers_lib"
|
||||
version = "0.3.1"
|
||||
version = "0.3.2"
|
||||
edition = "2021"
|
||||
license = "MIT OR Apache-2.0"
|
||||
description = "library to use the mers language in other projects"
|
||||
|
@ -228,9 +228,9 @@ pub enum ItersT {
|
||||
Enumerate,
|
||||
}
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Iter(Iters, Data);
|
||||
pub struct Iter(pub Iters, pub Data);
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct IterT(ItersT, Type, Type);
|
||||
pub struct IterT(pub ItersT, pub Type, pub Type);
|
||||
impl MersData for Iter {
|
||||
fn is_eq(&self, _other: &dyn MersData) -> bool {
|
||||
false
|
||||
|
@ -235,9 +235,9 @@ impl Config {
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct List(Vec<Arc<RwLock<Data>>>);
|
||||
pub struct List(pub Vec<Arc<RwLock<Data>>>);
|
||||
#[derive(Debug)]
|
||||
pub struct ListT(Type);
|
||||
pub struct ListT(pub Type);
|
||||
impl MersData for List {
|
||||
fn is_eq(&self, other: &dyn MersData) -> bool {
|
||||
if let Some(other) = other.as_any().downcast_ref::<Self>() {
|
||||
|
@ -114,9 +114,9 @@ impl Config {
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct Thread(Arc<Mutex<Result<JoinHandle<Data>, Data>>>);
|
||||
pub struct Thread(pub Arc<Mutex<Result<JoinHandle<Data>, Data>>>);
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct ThreadT(Type);
|
||||
pub struct ThreadT(pub Type);
|
||||
|
||||
impl MersData for Thread {
|
||||
fn is_eq(&self, _other: &dyn MersData) -> bool {
|
||||
|
Loading…
Reference in New Issue
Block a user