[][src]Enum luminance::tess::TessError

#[non_exhaustive]pub enum TessError {
    CannotCreate(String),
    AttributelessError(String),
    LengthIncoherency(usize),
    InternalBufferError(BufferError),
    ForbiddenPrimitiveMode(Mode),
    NoData,
}

Possible errors that might occur when dealing with Tess.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CannotCreate(String)

Cannot create a tessellation.

AttributelessError(String)

Error related to attributeless tessellation and/or render.

LengthIncoherency(usize)

Length incoherency in vertex, index or instance buffers.

InternalBufferError(BufferError)

Internal error ocurring with a buffer.

ForbiddenPrimitiveMode(Mode)

Forbidden primitive mode by hardware.

NoData

No data provided and empty tessellation.

Implementations

impl TessError[src]

pub fn cannot_create(e: impl Into<String>) -> Self[src]

Cannot create a tessellation.

pub fn attributeless_error(e: impl Into<String>) -> Self[src]

Error related to attributeless tessellation and/or render.

pub fn length_incoherency(len: usize) -> Self[src]

Length incoherency in vertex, index or instance buffers.

pub fn internal_buffer_error(e: BufferError) -> Self[src]

Internal error ocurring with a buffer.

pub fn forbidden_primitive_mode(mode: Mode) -> Self[src]

Forbidden primitive mode by hardware.

pub fn no_data() -> Self[src]

No data or empty tessellation.

Trait Implementations

impl Debug for TessError[src]

impl Display for TessError[src]

impl Eq for TessError[src]

impl Error for TessError[src]

impl From<BufferError> for TessError[src]

impl PartialEq<TessError> for TessError[src]

impl StructuralEq for TessError[src]

impl StructuralPartialEq for TessError[src]

Auto Trait Implementations

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> 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.