Enum RecipeLookupError
#[non_exhaustive]pub enum RecipeLookupError {
InvalidInput,
InvalidItem,
InvalidRecipe,
UnavailableLevel,
NotMatchable,
}Expand description
A refusal distinct from a valid input with no matching recipe.
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.
InvalidInput
InvalidItem
InvalidRecipe
NotMatchable
The engine has no matcher for this type. Cache its recipes once per load/reload through Host::recipes_of_type and match in mod memory, without per-tick crossings.
Trait Implementations§
§impl Clone for RecipeLookupError
impl Clone for RecipeLookupError
§fn clone(&self) -> RecipeLookupError
fn clone(&self) -> RecipeLookupError
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 RecipeLookupError
§impl Debug for RecipeLookupError
impl Debug for RecipeLookupError
impl Eq for RecipeLookupError
§impl NoBackend for RecipeLookupError
impl NoBackend for RecipeLookupError
§fn no_backend() -> RecipeLookupError
fn no_backend() -> RecipeLookupError
The error for a host without a game.
§impl PartialEq for RecipeLookupError
impl PartialEq for RecipeLookupError
impl StructuralPartialEq for RecipeLookupError
Auto Trait Implementations§
impl Freeze for RecipeLookupError
impl RefUnwindSafe for RecipeLookupError
impl Send for RecipeLookupError
impl Sync for RecipeLookupError
impl Unpin for RecipeLookupError
impl UnsafeUnpin for RecipeLookupError
impl UnwindSafe for RecipeLookupError
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