pub struct Placement<S, M>where
S: PlanningSolution,
M: Move<S>,{
pub entity_ref: EntityReference,
pub moves: Vec<M>,
/* private fields */
}Expand description
A placement represents an entity that needs a value assigned, along with the candidate moves to assign values.
§Type Parameters
S- The planning solution typeM- The move type
Fields§
§entity_ref: EntityReferenceThe entity reference.
moves: Vec<M>Candidate moves for this placement.
Implementations§
Source§impl<S, M> Placement<S, M>where
S: PlanningSolution,
M: Move<S>,
impl<S, M> Placement<S, M>where
S: PlanningSolution,
M: Move<S>,
Sourcepub fn new(entity_ref: EntityReference, moves: Vec<M>) -> Self
pub fn new(entity_ref: EntityReference, moves: Vec<M>) -> Self
Creates a new placement.
Trait Implementations§
Auto Trait Implementations§
impl<S, M> Freeze for Placement<S, M>
impl<S, M> RefUnwindSafe for Placement<S, M>where
M: RefUnwindSafe,
impl<S, M> Send for Placement<S, M>
impl<S, M> Sync for Placement<S, M>
impl<S, M> Unpin for Placement<S, M>where
M: Unpin,
impl<S, M> UnwindSafe for Placement<S, M>where
M: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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