Struct 为什么结构可以隐藏其实现细节,而不能隐藏枚举?

Struct 为什么结构可以隐藏其实现细节,而不能隐藏枚举?,struct,enums,rust,visibility,Struct,Enums,Rust,Visibility,在中,它们表明发布枚举不能保存私有结构: struct Node { elem: i32, next: List, } pub enum List { Empty, More(Box<Node>), } 为什么会这样 pub struct List { head: Link, } enum Link { Empty, More(Box<Node>), }

在中,它们表明
发布枚举
不能保存私有
结构

struct Node {
    elem: i32,
    next: List,
}

pub enum List {
    Empty,
    More(Box<Node>),
}
为什么会这样

pub struct List {
    head: Link,
}

enum Link {
    Empty,
    More(Box<Node>),
}