pub struct RowStepPattern {
pub num_x: u32,
pub num_y: u32,
pub step: Option<(Coord, Coord)>,
}Expand description
Repetition pattern for rows.
Fields§
§num_x: u32Number of repetitions in x-direction. At least one of num_x or num_y must be 1.
num_y: u32Number of repetitions in y-direction. At least one of num_x or num_y must be 1.
step: Option<(Coord, Coord)>Step size for x and y direction. By default the step size equals the size of the referenced site such that sites are arranged without overlap nor gap between.
Trait Implementations§
Source§impl Clone for RowStepPattern
impl Clone for RowStepPattern
Source§fn clone(&self) -> RowStepPattern
fn clone(&self) -> RowStepPattern
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 moreSource§impl Debug for RowStepPattern
impl Debug for RowStepPattern
Auto Trait Implementations§
impl Freeze for RowStepPattern
impl RefUnwindSafe for RowStepPattern
impl Send for RowStepPattern
impl Sync for RowStepPattern
impl Unpin for RowStepPattern
impl UnwindSafe for RowStepPattern
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more