pub struct CheckText {
pub dir: String,
pub max_literals: usize,
pub words_file: String,
pub skip: Vec<String>,
pub test_support: Vec<String>,
pub hint: String,
pub name_hint: String,
}Expand description
What check-text scans and lets through.
Fields§
§dir: StringThe screens’ Rust source folder.
max_literals: usizeThe most player-facing literals allowed.
words_file: StringWhere the data’s names are read on purpose: the helpers every screen uses.
skip: Vec<String>Files left out besides tests (a path ending in / leaves out a
folder): the debug screens, a frame’s text form for snapshots.
test_support: Vec<String>Files only compiled for tests (besides tests.rs, *_tests.rs and
tests/).
hint: StringWhat a literal is told to do about it.
name_hint: StringWhat a .name read is told to do about it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CheckText
impl<'de> Deserialize<'de> for CheckText
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
impl Eq for CheckText
impl StructuralPartialEq for CheckText
Auto Trait Implementations§
impl Freeze for CheckText
impl RefUnwindSafe for CheckText
impl Send for CheckText
impl Sync for CheckText
impl Unpin for CheckText
impl UnsafeUnpin for CheckText
impl UnwindSafe for CheckText
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.