mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Make some more types public since they are part of the public interface
This commit is contained in:
@@ -87,8 +87,10 @@ impl<L> IndexMut<usize> for Table<L> where L: TableLevel
|
||||
pub trait TableLevel {}
|
||||
|
||||
pub enum Level4 {}
|
||||
enum Level3 {}
|
||||
enum Level2 {}
|
||||
#[allow(dead_code)]
|
||||
pub enum Level3 {}
|
||||
#[allow(dead_code)]
|
||||
pub enum Level2 {}
|
||||
pub enum Level1 {}
|
||||
|
||||
impl TableLevel for Level4 {}
|
||||
@@ -96,7 +98,7 @@ impl TableLevel for Level3 {}
|
||||
impl TableLevel for Level2 {}
|
||||
impl TableLevel for Level1 {}
|
||||
|
||||
trait HierarchicalLevel: TableLevel {
|
||||
pub trait HierarchicalLevel: TableLevel {
|
||||
type NextLevel: TableLevel;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user