#![deny(missing_docs)]
use crate::FunctionCallResult;
mod affine_space;
mod ball1;
mod ball2;
mod ballinf;
mod ballp;
mod cartesian_product;
mod epigraph_squared_norm;
mod finite;
mod halfspace;
mod hyperplane;
mod no_constraints;
mod rectangle;
mod simplex;
mod soc;
mod sphere2;
mod zero;
pub use affine_space::{AffineSpace, AffineSpaceError};
pub use ball1::Ball1;
pub use ball2::Ball2;
pub use ballinf::BallInf;
pub use ballp::BallP;
pub use cartesian_product::CartesianProduct;
pub use epigraph_squared_norm::EpigraphSquaredNorm;
pub use finite::FiniteSet;
pub use halfspace::Halfspace;
pub use hyperplane::Hyperplane;
pub use no_constraints::NoConstraints;
pub use rectangle::Rectangle;
pub use simplex::Simplex;
pub use soc::SecondOrderCone;
pub use sphere2::Sphere2;
pub use zero::Zero;
pub trait Constraint<T = f64> {
fn project(&self, x: &mut [T]) -> FunctionCallResult;
fn is_convex(&self) -> bool;
}
#[cfg(test)]
mod tests;