pub struct Assingment<T> { /* private fields */ }
Implementations§
Source§impl<T: Clone> Assingment<T>
impl<T: Clone> Assingment<T>
pub fn new() -> Self
pub fn is_consistent(&self, problem: &Problem<T>) -> bool
pub fn is_complete(&self, problem: &Problem<T>) -> bool
pub fn select_variable(&self, problem: &Problem<T>) -> Option<Variable<T>>
pub fn insert(&mut self, name: &str, value: &T)
pub fn remove(&mut self, name: &str)
pub fn solution(self) -> Solution<T>
Trait Implementations§
Source§impl<T: Clone> Clone for Assingment<T>
impl<T: Clone> Clone for Assingment<T>
Source§fn clone(&self) -> Assingment<T>
fn clone(&self) -> Assingment<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for Assingment<T>
impl<T> RefUnwindSafe for Assingment<T>where
T: RefUnwindSafe,
impl<T> Send for Assingment<T>where
T: Send,
impl<T> Sync for Assingment<T>where
T: Sync,
impl<T> Unpin for Assingment<T>where
T: Unpin,
impl<T> UnwindSafe for Assingment<T>where
T: 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