Rust 可见性
fn test():私有pub fn test():对 module 可见pub(crate) fn test():crate 内可见pub(super):对父模块可见pub(in path):对 path 可见
Search
Dec 14, 2023, 1 min read
fn test():私有pub fn test():对 module 可见pub(crate) fn test():crate 内可见pub(super):对父模块可见pub(in path):对 path 可见