pub struct GraftCut {
pub cut: String,
pub graft: String,
pub end: Option<String>,
pub subtree: bool,
}Expand description
One path cut and its external implementation selector. 一条路径切口及其外部实现选择器。
Fields§
§cut: StringA slash-separated logical path, for example root/a1/b2.
逻辑路径,例如 root/a1/b2。
graft: StringName, path, or NodeId of a face supplied by the external graft set. 外部 graft 集合中实现的名称、路径或 NodeId。
end: Option<String>Optional end of a contiguous path range. 连续路径范围的可选终点。
subtree: boolWhether the cut replaces the complete subtree rooted at cut.
是否替换 cut 根节点下的整棵子树。
Implementations§
Source§impl GraftCut
impl GraftCut
Sourcepub fn new(cut: impl Into<String>, graft: impl Into<String>) -> GraftCut
pub fn new(cut: impl Into<String>, graft: impl Into<String>) -> GraftCut
A single-node cut: replace cut by graft, with no range end.
单节点切口:用 graft 替换 cut,不带区间终点。
Trait Implementations§
impl Eq for GraftCut
impl StructuralPartialEq for GraftCut
Auto Trait Implementations§
impl Freeze for GraftCut
impl RefUnwindSafe for GraftCut
impl Send for GraftCut
impl Sync for GraftCut
impl Unpin for GraftCut
impl UnsafeUnpin for GraftCut
impl UnwindSafe for GraftCut
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