pub enum CoordOptions {
Rand,
RandRange(Coordinates, Coordinates),
Other(Option<Coordinates>),
EvenlySpaced(Coordinates, Coordinates),
}Expand description
Options for passing coordinates to functions.
Variants§
Rand
Random coordinates in a default range
RandRange(Coordinates, Coordinates)
Random coordinates over range
Other(Option<Coordinates>)
Specify exact coordinates (Some) or use default (None)
EvenlySpaced(Coordinates, Coordinates)
Evenly space out coordinates over range
Trait Implementations§
Source§impl Clone for CoordOptions
impl Clone for CoordOptions
Source§fn clone(&self) -> CoordOptions
fn clone(&self) -> CoordOptions
Returns a duplicate 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 moreimpl Copy for CoordOptions
Auto Trait Implementations§
impl Freeze for CoordOptions
impl RefUnwindSafe for CoordOptions
impl Send for CoordOptions
impl Sync for CoordOptions
impl Unpin for CoordOptions
impl UnwindSafe for CoordOptions
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