Trait is_tree::traits::has_relative::UnsafeHasRelative
source · pub trait UnsafeHasRelative<'a>: Sized {
// Provided method
unsafe fn relative_mut<K>(
&'a mut self,
path: impl IntoIterator<Item = K>
) -> Option<Self>
where K: Into<String>,
Self: UnsafeClone + UnsafeHasRoot + UnsafeHasParent + HasPathSegment,
&'a mut Self: HasBranches<Self> { ... }
}
Expand description
A trait for objects that have a relative path mutably. By design, accessing a Visitor parent is unsafe.
Provided Methods§
sourceunsafe fn relative_mut<K>(
&'a mut self,
path: impl IntoIterator<Item = K>
) -> Option<Self>where
K: Into<String>,
Self: UnsafeClone + UnsafeHasRoot + UnsafeHasParent + HasPathSegment,
&'a mut Self: HasBranches<Self>,
unsafe fn relative_mut<K>(
&'a mut self,
path: impl IntoIterator<Item = K>
) -> Option<Self>where
K: Into<String>,
Self: UnsafeClone + UnsafeHasRoot + UnsafeHasParent + HasPathSegment,
&'a mut Self: HasBranches<Self>,
Gets a relative path mutably. “self”, “root”, and “super” are reserved path segments. “self” is the current object, “root” is the root object, and “super” is the parent object.
Object Safety§
This trait is not object safe.