Enum FluidIngredientError
#[non_exhaustive]pub enum FluidIngredientError {
Invalid,
UnknownFluid(String),
}Expand description
Why a fluid ingredient could not be parsed.
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.
Invalid
Invalid or unsupported ingredient shape.
UnknownFluid(String)
A fluid name is not registered.
Trait Implementations§
§impl Clone for FluidIngredientError
impl Clone for FluidIngredientError
§fn clone(&self) -> FluidIngredientError
fn clone(&self) -> FluidIngredientError
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 more§impl Debug for FluidIngredientError
impl Debug for FluidIngredientError
impl Eq for FluidIngredientError
§impl PartialEq for FluidIngredientError
impl PartialEq for FluidIngredientError
impl StructuralPartialEq for FluidIngredientError
Auto Trait Implementations§
impl Freeze for FluidIngredientError
impl RefUnwindSafe for FluidIngredientError
impl Send for FluidIngredientError
impl Sync for FluidIngredientError
impl Unpin for FluidIngredientError
impl UnsafeUnpin for FluidIngredientError
impl UnwindSafe for FluidIngredientError
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