bin_packer_3d 1.0.0

Three dimensional fitting algorithm to fit smaller boxes inside of a larger box
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::result;
use thiserror::Error;

/// This Result type is a convenience type that uses the BinPacker's Error type as a default.
pub type Result<T, E = Error> = result::Result<T, E>;

#[derive(Debug, PartialEq, Error)]
/// There are the errors which can be raised when using the bin packing algorithm.
pub enum Error {
    /// It is an invariant that each item must be able to fit within the bin's dimensions. If one or
    /// more items don't fit into the bin, then this error will be raised.
    ///
    #[error("AllItemsMustFit error: `{0}`")]
    AllItemsMustFit(String),

}