pub struct Visit {
pub dir: PathBuf,
pub rel: String,
pub depth: usize,
pub meta: Option<Box<Meta>>,
pub parent: Option<usize>,
pub readable: bool,
pub hard_link_to: Option<String>,
}Expand description
一处被访问到的分支目录。
Fields§
§dir: PathBuf目录绝对/原始路径。
rel: Stringbundle 内相对路径(ROOT 为 .)。
depth: usize深度(ROOT = 0)。
meta: Option<Box<Meta>>解析结果;None 表示 .str.toml 解析失败。
parent: Option<usize>父分支在 visits 中的下标。
readable: bool原始 .str.toml 文本是否读取成功。
hard_link_to: Option<String>硬链接分支(规范 §4.6.1 mode = "hard"):内容来源目标分支的 id。
硬链接是有身份的真实分支(path = id = 自身目录),内容面板显示目标的
内容条目且只读、目标的分支结构不跟过来;自有 entries 只允许子分支。
普通分支与软连接挂载视图为 None。
Auto Trait Implementations§
impl Forget for Visit
impl Freeze for Visit
impl Move for Visit
impl RefUnwindSafe for Visit
impl Send for Visit
impl Sync for Visit
impl Unpin for Visit
impl UnsafeUnpin for Visit
impl UnwindSafe for Visit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more