pub enum LoadedGraft {
Record(RecordedGraft),
Unreadable {
selector: String,
reason: String,
},
}Expand description
One directory under .nichlink/external-grafts/, read or broken.
.nichlink/external-grafts/ 下的一个目录,读得懂或坏了。
A broken plan is reported rather than hidden: the author has to see it, and
the other records still apply. The build treats the same file as advisory
(build_method::graft_plan_check), so the runtime does not let it abort.
坏计划会被报告而不是藏起来:作者必须看见它,其余记录照常应用。构建把同一文件当作
提示(build_method::graft_plan_check),因此运行期也不会因它中止。
Variants§
Record(RecordedGraft)
A plan directory that parsed into a usable recorded graft. 解析成功、可用的已记录 graft 计划目录。
Unreadable
A plan directory that could not be read; the reason is reported. 无法读取的计划目录;原因随条目一同上报。
Implementations§
Trait Implementations§
Source§impl Clone for LoadedGraft
impl Clone for LoadedGraft
Source§impl Debug for LoadedGraft
impl Debug for LoadedGraft
impl Eq for LoadedGraft
Source§impl PartialEq for LoadedGraft
impl PartialEq for LoadedGraft
impl StructuralPartialEq for LoadedGraft
Auto Trait Implementations§
impl Freeze for LoadedGraft
impl RefUnwindSafe for LoadedGraft
impl Send for LoadedGraft
impl Sync for LoadedGraft
impl Unpin for LoadedGraft
impl UnsafeUnpin for LoadedGraft
impl UnwindSafe for LoadedGraft
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