pub struct ScreenLayout { /* private fields */ }Expand description
Fully materialized screen and tile layout for a token sequence.
Implementations§
Source§impl ScreenLayout
impl ScreenLayout
pub fn build(config: &MultiscreenConfig, sequence_len: usize) -> Result<Self>
Sourcepub fn sequence_len(&self) -> usize
pub fn sequence_len(&self) -> usize
Paper sequence length T for this layout.
pub fn token_count(&self) -> usize
👎Deprecated:
use sequence_len for paper-aligned naming
pub fn screens(&self) -> &[Screen]
pub fn screening_tile_count(&self) -> usize
pub fn screening_tiles(&self) -> impl Iterator<Item = &Tile>
pub fn tiles(&self) -> impl Iterator<Item = &Tile>
👎Deprecated:
use screening_tiles for paper-aligned naming
Trait Implementations§
Source§impl Clone for ScreenLayout
impl Clone for ScreenLayout
Source§fn clone(&self) -> ScreenLayout
fn clone(&self) -> ScreenLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScreenLayout
impl Debug for ScreenLayout
Source§impl PartialEq for ScreenLayout
impl PartialEq for ScreenLayout
Source§fn eq(&self, other: &ScreenLayout) -> bool
fn eq(&self, other: &ScreenLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ScreenLayout
impl StructuralPartialEq for ScreenLayout
Auto Trait Implementations§
impl Freeze for ScreenLayout
impl RefUnwindSafe for ScreenLayout
impl Send for ScreenLayout
impl Sync for ScreenLayout
impl Unpin for ScreenLayout
impl UnsafeUnpin for ScreenLayout
impl UnwindSafe for ScreenLayout
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.