pub enum ComplexResourceType {
Diamond,
Water,
Life,
Robot,
Dolphin,
AIPartner,
}Expand description
An enum that identifies a ComplexResource type without actually containing the
underlying resource.
Variants§
Implementations§
Source§impl ComplexResourceType
impl ComplexResourceType
Sourcepub fn is_diamond(&self) -> bool
pub fn is_diamond(&self) -> bool
Returns true if the resource type is $complex.
Sourcepub fn is_dolphin(&self) -> bool
pub fn is_dolphin(&self) -> bool
Returns true if the resource type is $complex.
Sourcepub fn is_aipartner(&self) -> bool
pub fn is_aipartner(&self) -> bool
Returns true if the resource type is $complex.
Trait Implementations§
Source§impl Clone for ComplexResourceType
impl Clone for ComplexResourceType
Source§fn clone(&self) -> ComplexResourceType
fn clone(&self) -> ComplexResourceType
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 ComplexResourceType
impl Debug for ComplexResourceType
Source§impl Hash for ComplexResourceType
impl Hash for ComplexResourceType
Source§impl PartialEq for ComplexResourceType
impl PartialEq for ComplexResourceType
impl Copy for ComplexResourceType
impl Eq for ComplexResourceType
Auto Trait Implementations§
impl Freeze for ComplexResourceType
impl RefUnwindSafe for ComplexResourceType
impl Send for ComplexResourceType
impl Sync for ComplexResourceType
impl Unpin for ComplexResourceType
impl UnwindSafe for ComplexResourceType
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