[][src]Trait crystal_packing::traits::State

pub trait State: Eq + PartialEq + PartialOrd + Ord + Clone + Send + Sync + Serialize + Debug + ToSVG<Value = Document> {
    pub fn score(&self) -> Option<f64>;
pub fn generate_basis(&self) -> Vec<Basis<'_>>;
pub fn total_shapes(&self) -> usize;
pub fn as_positions(&self) -> Result<String, Error>; }

Required methods

pub fn score(&self) -> Option<f64>[src]

pub fn generate_basis(&self) -> Vec<Basis<'_>>[src]

pub fn total_shapes(&self) -> usize[src]

pub fn as_positions(&self) -> Result<String, Error>[src]

Loading content...

Implementors

impl<S> State for PackedState<S> where
    S: Shape + Intersect
[src]

impl<S> State for PotentialState<S> where
    S: Shape + Potential
[src]

Loading content...