Enum spherical_cow::errors::SphericalCowError [] [src]

pub enum SphericalCowError {
    NegativeRadius,
    NegativeExtents,
    Uncontained,
    NoneSetF,
    NoneFront,
}

All errors thrown by the library

Variants

If a sphere is given a negative radius.

If a cuboid is given a negative half extent.

If a sphere is created but is not confined by the Container. This happens quite a lot and is generally handled silently. This error is only thrown by the init_spheres method. Usually this means the geometry of the container is perhaps not aligned to the origin, it is scaled too small, or the spheres you're attempting to pack are too large.

We choose a random valuc from the set_f vector. rand returns an option and we pop the value. If it's None this error is thrown. Due to the contstuction of the rest of the method, it's safe to say this is unreachable.

We choose a random valuc from the front vector. rand returns an option and we pop the value. If it's None this error is thrown. Due to the contstuction of the rest of the method, it's safe to say this is unreachable.

Trait Implementations

impl Debug for SphericalCowError
[src]

[src]

Formats the value using the given formatter.

impl Display for SphericalCowError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for SphericalCowError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more