Enum omg_serde::data::math::transformer::transformer2d::Transformer2dSerde
source · [−]pub enum Transformer2dSerde {
Lookup2d(LookupTable2dSerde),
Const(u8),
OverwriteIfAbove(OverwriteWithThresholdSerde<u8>),
OverwriteIfBelow(OverwriteWithThresholdSerde<u8>),
}
Variants
Lookup2d(LookupTable2dSerde)
Uses both inputs to lookup av alue. E.g. biome from rainfall & temperature.
Const(u8)
Returns a const value.
OverwriteIfAbove(OverwriteWithThresholdSerde<u8>)
Overwrites the input, if it is above a threshold.
OverwriteIfBelow(OverwriteWithThresholdSerde<u8>)
Overwrites the input, if it is below a threshold.
Implementations
sourceimpl Transformer2dSerde
impl Transformer2dSerde
pub fn try_convert(self) -> Result<Transformer2d>
Trait Implementations
sourceimpl Debug for Transformer2dSerde
impl Debug for Transformer2dSerde
sourceimpl<'de> Deserialize<'de> for Transformer2dSerde
impl<'de> Deserialize<'de> for Transformer2dSerde
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<&'_ Transformer2d> for Transformer2dSerde
impl From<&'_ Transformer2d> for Transformer2dSerde
sourcefn from(transformer: &Transformer2d) -> Self
fn from(transformer: &Transformer2d) -> Self
Converts to this type from the input type.
sourceimpl Serialize for Transformer2dSerde
impl Serialize for Transformer2dSerde
Auto Trait Implementations
impl RefUnwindSafe for Transformer2dSerde
impl Send for Transformer2dSerde
impl Sync for Transformer2dSerde
impl Unpin for Transformer2dSerde
impl UnwindSafe for Transformer2dSerde
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more