pub enum BasicResource {
Oxygen(Oxygen),
Hydrogen(Hydrogen),
Carbon(Carbon),
Silicon(Silicon),
}Expand description
An enum that provides a unified type for all possible basic resources.
This enum wraps every generated basic resource struct (e.g., Oxygen, Hydrogen)
into a single type. It is useful when you need to store or pass around any basic
resource without knowing its specific concrete type at compile time.
Variants§
Implementations§
Trait Implementations§
Source§impl Debug for BasicResource
impl Debug for BasicResource
Source§impl Hash for BasicResource
impl Hash for BasicResource
Source§impl PartialEq for BasicResource
impl PartialEq for BasicResource
impl Eq for BasicResource
impl StructuralPartialEq for BasicResource
Auto Trait Implementations§
impl Freeze for BasicResource
impl RefUnwindSafe for BasicResource
impl Send for BasicResource
impl Sync for BasicResource
impl Unpin for BasicResource
impl UnwindSafe for BasicResource
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