pub enum BasicResourceType {
Oxygen,
Hydrogen,
Carbon,
Silicon,
}Expand description
An enum that identifies a BasicResource type without actually containing the
underlying resource.
This enum is generated by the define_resources! macro and contains a variant for
each basic resource defined in the macro invocation. It is primarily used for
type identification and recipe definitions within the Generator.
Variants§
Implementations§
Source§impl BasicResourceType
impl BasicResourceType
Sourcepub fn is_hydrogen(&self) -> bool
pub fn is_hydrogen(&self) -> bool
Returns true if the resource type is $basic.
Sourcepub fn is_silicon(&self) -> bool
pub fn is_silicon(&self) -> bool
Returns true if the resource type is $basic.
Trait Implementations§
Source§impl Clone for BasicResourceType
impl Clone for BasicResourceType
Source§fn clone(&self) -> BasicResourceType
fn clone(&self) -> BasicResourceType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BasicResourceType
impl Debug for BasicResourceType
Source§impl Hash for BasicResourceType
impl Hash for BasicResourceType
Source§impl PartialEq for BasicResourceType
impl PartialEq for BasicResourceType
impl Copy for BasicResourceType
impl Eq for BasicResourceType
Auto Trait Implementations§
impl Freeze for BasicResourceType
impl RefUnwindSafe for BasicResourceType
impl Send for BasicResourceType
impl Sync for BasicResourceType
impl Unpin for BasicResourceType
impl UnwindSafe for BasicResourceType
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