pub struct Visit {
pub dir: PathBuf,
pub rel: String,
pub depth: usize,
pub meta: Option<Box<Meta>>,
pub parent: Option<usize>,
pub readable: bool,
}Expand description
一处被访问到的分支目录。
Fields§
§dir: PathBuf目录绝对/原始路径。
rel: Stringbundle 内相对路径(ROOT 为 .)。
depth: usize深度(ROOT = 0)。
meta: Option<Box<Meta>>解析结果;None 表示 ._meta 解析失败。
parent: Option<usize>父分支在 visits 中的下标。
readable: bool原始 ._meta 文本是否读取成功。
Auto Trait Implementations§
impl Freeze 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