pub enum SurfaceType {
Ball,
HorizontalLoop,
VerticalLoop,
Rectangle,
}
Expand description
Represents the surface type of a simulation (how wrapping will behave).
Variants§
Ball
A spherical surface where cells wrap around on every edge.
HorizontalLoop
A cylindrical surface where cells wrap around horizontally (left/right).
VerticalLoop
A cylindrical surface where cells wrap around vertically (top/bottom).
Rectangle
A rectangular surface with no wrapping.
Trait Implementations§
source§impl Clone for SurfaceType
impl Clone for SurfaceType
source§fn clone(&self) -> SurfaceType
fn clone(&self) -> SurfaceType
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for SurfaceType
impl RefUnwindSafe for SurfaceType
impl Send for SurfaceType
impl Sync for SurfaceType
impl Unpin for SurfaceType
impl UnwindSafe for SurfaceType
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