pub enum IncrementalVolumeError {
InvalidGeometry {
dimensions: UVec3,
},
SliceLengthMismatch {
z_index: u32,
expected: usize,
actual: usize,
},
SliceOutOfBounds {
z_index: u32,
depth: u32,
},
Volume(VolumeError),
}Expand description
Errors raised while creating or updating an IncrementalVolume.
Variants§
InvalidGeometry
The provided geometry had zero depth or an invalid slice shape.
SliceLengthMismatch
The provided slice length did not match the preallocated geometry.
Fields
SliceOutOfBounds
The requested slice index is outside the preallocated depth.
Volume(VolumeError)
The internal volume buffer could not be materialized.
Trait Implementations§
Source§impl Debug for IncrementalVolumeError
impl Debug for IncrementalVolumeError
Source§impl Display for IncrementalVolumeError
impl Display for IncrementalVolumeError
Source§impl Error for IncrementalVolumeError
impl Error for IncrementalVolumeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<VolumeError> for IncrementalVolumeError
impl From<VolumeError> for IncrementalVolumeError
Source§fn from(source: VolumeError) -> Self
fn from(source: VolumeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IncrementalVolumeError
impl PartialEq for IncrementalVolumeError
impl StructuralPartialEq for IncrementalVolumeError
Auto Trait Implementations§
impl Freeze for IncrementalVolumeError
impl RefUnwindSafe for IncrementalVolumeError
impl Send for IncrementalVolumeError
impl Sync for IncrementalVolumeError
impl Unpin for IncrementalVolumeError
impl UnsafeUnpin for IncrementalVolumeError
impl UnwindSafe for IncrementalVolumeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more