pub struct BspaNode { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<const B: usize> Node<B> for BspaNode
impl<const B: usize> Node<B> for BspaNode
Source§fn has_fulfilled(&self) -> bool
fn has_fulfilled(&self) -> bool
Heuristic function returning node’s fulfillment status
Source§fn expand<'a, I: Iterator<Item = &'a mut MaybeUninit<Self>>>(
&'a self,
iter: I,
) -> Result<usize, BeamError>
fn expand<'a, I: Iterator<Item = &'a mut MaybeUninit<Self>>>( &'a self, iter: I, ) -> Result<usize, BeamError>
Generate successor nodes and write them to buffer
Source§fn evaluate(&self) -> u64
fn evaluate(&self) -> u64
Node’s score heuristics funciton for
Beam::cycleSource§fn inflate(&mut self)
fn inflate(&mut self)
Mutate nodes in
Beam::node_buf to meet criteria for Node::expandfn estimate(&self) -> Option<usize>
impl StructuralPartialEq for BspaNode
Auto Trait Implementations§
impl Freeze for BspaNode
impl RefUnwindSafe for BspaNode
impl Send for BspaNode
impl Sync for BspaNode
impl Unpin for BspaNode
impl UnsafeUnpin for BspaNode
impl UnwindSafe for BspaNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more