mirror of
https://github.com/Dummi26/mers.git
synced 2025-12-13 19:06:16 +01:00
make some types/fields public
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user