Enum TerrainModelError
#[non_exhaustive]pub enum TerrainModelError {
Model(ModelError),
Refused,
}Expand description
Why BlockEntityDrawContext::terrain_model
drew nothing. A refused draw appends no geometry.
Variants (Non-exhaustive)§
This enum is marked as 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.
Model(ModelError)
The handle is stale or not a resolved standalone model.
Refused
A quad could not be drawn, so none was: under TerrainMaterial::Model a translucent
quad or an unknown render type; a sprite missing from the block sprites; a pose or UV
that is not finite, or a pose that flattens the model; a shrink ratio outside
0.0..=1.0; or a shift whose scale or offset is not finite, whose sprites are unknown,
or whose source sprite no face of the model uses.
Trait Implementations§
§impl Clone for TerrainModelError
impl Clone for TerrainModelError
§fn clone(&self) -> TerrainModelError
fn clone(&self) -> TerrainModelError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TerrainModelError
§impl Debug for TerrainModelError
impl Debug for TerrainModelError
impl Eq for TerrainModelError
§impl PartialEq for TerrainModelError
impl PartialEq for TerrainModelError
impl StructuralPartialEq for TerrainModelError
Auto Trait Implementations§
impl Freeze for TerrainModelError
impl RefUnwindSafe for TerrainModelError
impl Send for TerrainModelError
impl Sync for TerrainModelError
impl Unpin for TerrainModelError
impl UnsafeUnpin for TerrainModelError
impl UnwindSafe for TerrainModelError
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