pub trait StrideOpsExt: StrideOps + Sealed {
// Provided methods
fn is_empty(&self) -> bool { ... }
fn with_child(
self,
addr: u8,
child: impl Into<Child<Self, Self::T>>,
) -> Self { ... }
fn into_child(self) -> Child<Self, Self::T> { ... }
}Expand description
Extension methods for nodes implementing StrideOps.
Provided Methods§
Sourcefn with_child(self, addr: u8, child: impl Into<Child<Self, Self::T>>) -> Self
fn with_child(self, addr: u8, child: impl Into<Child<Self, Self::T>>) -> Self
Return this node with the given child added.
Meant as sugar for easily constructing nodes directly.
§Examples
DefaultNode::EMPTY.with_child(
0,
DefaultNode::EMPTY
.with_child(1, Child::Fringe(123))
.into_child(),
);Sourcefn into_child(self) -> Child<Self, Self::T>
fn into_child(self) -> Child<Self, Self::T>
Wrap this node in a Child::Path.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".