[][src]Trait crystal_packing::traits::Shape

pub trait Shape: Clone + Send + Sync + Serialize + Debug + Display + ToSVG<Value = Group> {
    type Component: Clone + Send + Sync + Serialize + Debug + Display + Mul<Transform2, Output = Self::Component> + ToSVG;
    pub fn score(&self, other: &Self) -> Option<f64>;
pub fn enclosing_radius(&self) -> f64;
pub fn get_items(&self) -> Vec<Self::Component>;
pub fn iter(&self) -> Iter<'_, Self::Component>;
pub fn transform(&self, transform: &Transform2) -> Self; pub fn rotational_symmetries(&self) -> u64 { ... } }

Associated Types

Loading content...

Required methods

pub fn score(&self, other: &Self) -> Option<f64>[src]

pub fn enclosing_radius(&self) -> f64[src]

pub fn get_items(&self) -> Vec<Self::Component>[src]

pub fn iter(&self) -> Iter<'_, Self::Component>[src]

pub fn transform(&self, transform: &Transform2) -> Self[src]

Loading content...

Provided methods

Loading content...

Implementors

impl Shape for LineShape[src]

type Component = Line2

impl Shape for LJShape2[src]

type Component = LJ2

impl Shape for MolecularShape2[src]

type Component = Atom2

Loading content...