Enum navmesh::Error[][src]

pub enum Error {
    TriangleVerticeIndexOutOfBounds(u32u8u32),
    ConnectionVerticeIndexOutOfBounds(u32u8u32),
    CouldNotSerializeNavMesh(String),
    CouldNotDeserializeNavMesh(String),
    CellsCountDoesNotMatchColsRows(usizeusizeusize),
    EmptyCells(usizeusize),
    InvalidCellCoordinate(usizeusizeusizeusize),
}
Expand description

Error data.

Variants

TriangleVerticeIndexOutOfBounds(u32u8u32)

Tuple Fields

0: u32
1: u8
2: u32

Trying to construct triangle with vertice index out of vertices list. (triangle index, local vertice index, global vertice index)

ConnectionVerticeIndexOutOfBounds(u32u8u32)

Tuple Fields

0: u32
1: u8
2: u32

Trying to construct connection with vertice index out of vertices list. (connection index, local vertice index, global vertice index)

CouldNotSerializeNavMesh(String)

Tuple Fields

0: String

Could not serialize NavMesh. Contains serialization error string.

CouldNotDeserializeNavMesh(String)

Tuple Fields

0: String

Could not deserialize NavMesh. Contains deserialization error string.

CellsCountDoesNotMatchColsRows(usizeusizeusize)

Tuple Fields

0: usize
1: usize
2: usize

Trying to use cells container with size not matching cols and rows count. (cells count, cols count, rows count)

EmptyCells(usizeusize)

Tuple Fields

0: usize
1: usize

Either cols or rows count is zero. (cols count, rows count)

InvalidCellCoordinate(usizeusizeusizeusize)

Tuple Fields

0: usize
1: usize
2: usize
3: usize

Trying to use cell coordinate out of bounds. (col, row, cols count, rows count)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.