pub enum RefractionMode {
Stir,
Push,
Twist,
}Expand description
How a refraction sheet bends what is behind it.
Variants§
Stir
Moves the picture along a direction that turns at stir_speed.
Push
Moves it by the normal map: its x across the view and its y down it, each from -1 to 1.
Twist
Twists it about the sheet’s centre while its edge stays.
Trait Implementations§
Source§impl Clone for RefractionMode
impl Clone for RefractionMode
impl Copy for RefractionMode
Source§impl Debug for RefractionMode
impl Debug for RefractionMode
impl Eq for RefractionMode
Source§impl PartialEq for RefractionMode
impl PartialEq for RefractionMode
Source§impl Serialize for RefractionMode
impl Serialize for RefractionMode
impl StructuralPartialEq for RefractionMode
Auto Trait Implementations§
impl Forget for RefractionMode
impl Freeze for RefractionMode
impl RefUnwindSafe for RefractionMode
impl Send for RefractionMode
impl Sync for RefractionMode
impl Unpin for RefractionMode
impl UnsafeUnpin for RefractionMode
impl UnwindSafe for RefractionMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.