Struct libreda_lefdef::lef_ast::StepPattern
source · pub struct StepPattern {
pub num_x: u64,
pub num_y: u64,
pub space_x: f64,
pub space_y: f64,
}Expand description
Array-like repetition of an element.
Use each_offset() to iterate through all offsets described by this pattern.
Fields§
§num_x: u64Number of repetitions in x-direction.
num_y: u64Number of repetitions in y-direction.
space_x: f64Spacing in x-direction.
space_y: f64Spacing in y-direction.
Implementations§
source§impl StepPattern
impl StepPattern
sourcepub fn each_offset(&self) -> impl Iterator<Item = (f64, f64)> + '_
pub fn each_offset(&self) -> impl Iterator<Item = (f64, f64)> + '_
Return an iterator over each offset of the step pattern. The origin is at (0.0, 0.0).
Trait Implementations§
source§impl Clone for StepPattern
impl Clone for StepPattern
source§fn clone(&self) -> StepPattern
fn clone(&self) -> StepPattern
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 moresource§impl Debug for StepPattern
impl Debug for StepPattern
source§impl Default for StepPattern
impl Default for StepPattern
source§impl PartialEq for StepPattern
impl PartialEq for StepPattern
source§fn eq(&self, other: &StepPattern) -> bool
fn eq(&self, other: &StepPattern) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for StepPattern
impl StructuralPartialEq for StepPattern
Auto Trait Implementations§
impl Freeze for StepPattern
impl RefUnwindSafe for StepPattern
impl Send for StepPattern
impl Sync for StepPattern
impl Unpin for StepPattern
impl UnwindSafe for StepPattern
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> 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