Enum omg_serde::data::math::generator::generator2d::Generator2dSerde
source · [−]pub enum Generator2dSerde {
ApplyToX(Generator1dSerde),
ApplyToY(Generator1dSerde),
ApplyToDistance {
generator: Generator1dSerde,
center_x: u32,
center_y: u32,
},
IndexGenerator(Size2dSerde),
Noise2d(NoiseSerde),
}
Variants
ApplyToX(Generator1dSerde)
ApplyToY(Generator1dSerde)
ApplyToDistance
IndexGenerator(Size2dSerde)
Noise2d(NoiseSerde)
Implementations
sourceimpl Generator2dSerde
impl Generator2dSerde
pub fn try_convert(self) -> Result<Generator2d>
Trait Implementations
sourceimpl Debug for Generator2dSerde
impl Debug for Generator2dSerde
sourceimpl<'de> Deserialize<'de> for Generator2dSerde
impl<'de> Deserialize<'de> for Generator2dSerde
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<&'_ Generator2d> for Generator2dSerde
impl From<&'_ Generator2d> for Generator2dSerde
sourcefn from(generator: &Generator2d) -> Self
fn from(generator: &Generator2d) -> Self
Converts to this type from the input type.
sourceimpl Serialize for Generator2dSerde
impl Serialize for Generator2dSerde
Auto Trait Implementations
impl RefUnwindSafe for Generator2dSerde
impl Send for Generator2dSerde
impl Sync for Generator2dSerde
impl Unpin for Generator2dSerde
impl UnwindSafe for Generator2dSerde
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