#[repr(u8)]pub enum WeatherState {
Unaffected = 0,
Exposed = 1,
Weathered = 2,
Oxidized = 3,
}Expand description
Oxidation stages for copper blocks, matching vanilla’s WeatheringCopper.WeatherState.
Ordinal values are used for age comparisons during the neighbor scan algorithm.
Variants§
Unaffected = 0
Fresh copper, no oxidation.
Exposed = 1
First stage of oxidation.
Weathered = 2
Second stage of oxidation.
Oxidized = 3
Fully oxidized, will not advance further.
Trait Implementations§
Source§impl Clone for WeatherState
impl Clone for WeatherState
Source§fn clone(&self) -> WeatherState
fn clone(&self) -> WeatherState
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 WeatherState
Source§impl Debug for WeatherState
impl Debug for WeatherState
impl Eq for WeatherState
Source§impl Ord for WeatherState
impl Ord for WeatherState
Source§fn cmp(&self, other: &WeatherState) -> Ordering
fn cmp(&self, other: &WeatherState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WeatherState
impl PartialEq for WeatherState
Source§impl PartialOrd for WeatherState
impl PartialOrd for WeatherState
impl StructuralPartialEq for WeatherState
Auto Trait Implementations§
impl Freeze for WeatherState
impl RefUnwindSafe for WeatherState
impl Send for WeatherState
impl Sync for WeatherState
impl Unpin for WeatherState
impl UnsafeUnpin for WeatherState
impl UnwindSafe for WeatherState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>