pub struct Layout<K> {
pub states: Vec<VState>,
pub parts: Vec<(K, Range<usize>)>,
pub lines: Vec<Range<usize>>,
}Expand description
Fields§
§states: Vec<VState>The shapes, in order.
parts: Vec<(K, Range<usize>)>Each part’s key and its range of states.
lines: Vec<Range<usize>>Runs of parts forming lines; empty means one line.
Trait Implementations§
impl<K: PartialEq> StructuralPartialEq for Layout<K>
Auto Trait Implementations§
impl<K> Freeze for Layout<K>
impl<K> RefUnwindSafe for Layout<K>
impl<K> Send for Layout<K>
impl<K> Sync for Layout<K>
impl<K> Unpin for Layout<K>
impl<K> UnsafeUnpin for Layout<K>
impl<K> UnwindSafe for Layout<K>
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