Skip to content

Commit da560f5

Browse files
authored
ArrayTiler spacing (#44)
* add support for spacing * fix compiler errors
1 parent fa30e3e commit da560f5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

substrate/src/layout/placement/array.rs

+12
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,24 @@ impl<'a> ArrayTilerBuilder<'a> {
4242
self
4343
}
4444

45+
#[inline]
46+
pub fn space(&mut self, space: i64) -> &mut Self {
47+
self.space = space;
48+
self
49+
}
50+
4551
#[inline]
4652
pub fn alt_mode(&mut self, mode: impl Into<AlignMode>) -> &mut Self {
4753
self.alt_mode = Some(mode.into());
4854
self
4955
}
5056

57+
#[inline]
58+
pub fn alt_space(&mut self, alt_space: i64) -> &mut Self {
59+
self.alt_space = alt_space;
60+
self
61+
}
62+
5163
#[inline]
5264
pub fn push<'b>(&mut self, tile: impl Into<Tile<'b>>) -> &mut Self
5365
where

0 commit comments

Comments
 (0)