[][src]Enum splashsurf_lib::uniform_grid::GridConstructionError

pub enum GridConstructionError<I: Index, R: Real> {
    InvalidCellSize(R),
    DegenerateAabb,
    InconsistentAabb,
    IndexTypeTooSmallCellsPerDim,
    IndexTypeTooSmallPointsPerDim,
    IndexTypeTooSmallTotalPoints(I, I, I),
    RealTypeTooSmallDomainSize,
}

Error type for the construction of a UniformGrid

Variants

InvalidCellSize(R)

The cell size is invalid, it has to be larger than zero

DegenerateAabb

The AABB is degenerate, every dimension of the AABB has to have non-zero extents

InconsistentAabb

The AABB is inconsistent, every dimension of the AABB has to have an extent larger than zero

IndexTypeTooSmallCellsPerDim

The index type is too small to index the number of cells in each dimension of the domain

IndexTypeTooSmallPointsPerDim

The index type is too small to index the number of points in each dimension of the domain

IndexTypeTooSmallTotalPoints(I, I, I)

The index type is too small to index the total number of points in the whole domain (nx * ny * nz)

RealTypeTooSmallDomainSize

The real type is too small to store the coordinates of all possible points in the domain

Trait Implementations

impl<I: Clone + Index, R: Clone + Real> Clone for GridConstructionError<I, R>[src]

impl<I: Copy + Index, R: Copy + Real> Copy for GridConstructionError<I, R>[src]

impl<I: Debug + Index, R: Debug + Real> Debug for GridConstructionError<I, R>[src]

impl<I: Index, R: Real> Display for GridConstructionError<I, R>[src]

impl<I: Eq + Index, R: Eq + Real> Eq for GridConstructionError<I, R>[src]

impl<I: Index, R: Real> Error for GridConstructionError<I, R>[src]

impl<I: Index, R: Real> From<GridConstructionError<I, R>> for ReconstructionError<I, R>[src]

fn from(error: GridConstructionError<I, R>) -> Self[src]

Allows automatic conversion of a GridConstructionError to a ReconstructionError

impl<I: PartialEq + Index, R: PartialEq + Real> PartialEq<GridConstructionError<I, R>> for GridConstructionError<I, R>[src]

impl<I: Index, R: Real> StructuralEq for GridConstructionError<I, R>[src]

impl<I: Index, R: Real> StructuralPartialEq for GridConstructionError<I, R>[src]

Auto Trait Implementations

impl<I, R> RefUnwindSafe for GridConstructionError<I, R> where
    I: RefUnwindSafe,
    R: RefUnwindSafe
[src]

impl<I, R> Send for GridConstructionError<I, R>[src]

impl<I, R> Sync for GridConstructionError<I, R>[src]

impl<I, R> Unpin for GridConstructionError<I, R> where
    I: Unpin,
    R: Unpin
[src]

impl<I, R> UnwindSafe for GridConstructionError<I, R> where
    I: UnwindSafe,
    R: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,