pub struct ScreenConfig {
pub tokens_per_screen: usize,
pub screen_stride_tokens: usize,
pub max_screen_count: Option<usize>,
}Expand description
Controls how a token sequence is split into screens.
Fields§
§tokens_per_screen: usize§screen_stride_tokens: usize§max_screen_count: Option<usize>Implementations§
Trait Implementations§
Source§impl Clone for ScreenConfig
impl Clone for ScreenConfig
Source§fn clone(&self) -> ScreenConfig
fn clone(&self) -> ScreenConfig
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 ScreenConfig
impl Debug for ScreenConfig
Source§impl Default for ScreenConfig
impl Default for ScreenConfig
Source§impl<'de> Deserialize<'de> for ScreenConfig
impl<'de> Deserialize<'de> for ScreenConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScreenConfig
impl PartialEq for ScreenConfig
Source§fn eq(&self, other: &ScreenConfig) -> bool
fn eq(&self, other: &ScreenConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScreenConfig
impl Serialize for ScreenConfig
impl Eq for ScreenConfig
impl StructuralPartialEq for ScreenConfig
Auto Trait Implementations§
impl Freeze for ScreenConfig
impl RefUnwindSafe for ScreenConfig
impl Send for ScreenConfig
impl Sync for ScreenConfig
impl Unpin for ScreenConfig
impl UnsafeUnpin for ScreenConfig
impl UnwindSafe for ScreenConfig
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.