make some types/fields public

This commit is contained in:
Mark
2024-01-16 10:38:45 +01:00
parent 8c235a98aa
commit 2d373d1ba7
5 changed files with 9 additions and 9 deletions

View File

@@ -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

View File

@@ -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>() {

View File

@@ -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 {