pub struct KeyvalConfig<'a> {Show 13 fields
pub prefix: &'a str,
pub keyset: &'a str,
pub key: &'a str,
pub vtype: &'a str,
pub default: Option<&'a str>,
pub default_tks: Option<Tokens>,
pub kind: Option<&'a str>,
pub code: Option<ExpansionBody>,
pub macroprefix: Option<&'a str>,
pub mismatch: Option<ExpansionBody>,
pub normalize: Option<bool>,
pub bin: Option<Tokens>,
pub choices: Vec<String>,
}Expand description
Configuration fields for declaring a new KeyVal pattern
Fields§
§prefix: &'a str§keyset: &'a str§key: &'a str§vtype: &'a str§default: Option<&'a str>§default_tks: Option<Tokens>Token-form default, preferred over default when set: real xkeyval
stores the default’s raw TOKENS (\XKV@define@default), while the
string path below re-tokenizes under the STANDARD cattable, splitting
internal names ([\xskak@val@defaultid] → \xskak + @val@defaultid
— xskak-keys.sty L25, the xskak/chessboard manuals’ 1000-error csname
cascade). Perl shares the stringify bug (Package.pm DefKeyVal ToString).
kind: Option<&'a str>§code: Option<ExpansionBody>§macroprefix: Option<&'a str>§mismatch: Option<ExpansionBody>§normalize: Option<bool>§bin: Option<Tokens>§choices: Vec<String>Trait Implementations§
Source§impl<'a> Clone for KeyvalConfig<'a>
impl<'a> Clone for KeyvalConfig<'a>
Source§impl<'a> Debug for KeyvalConfig<'a>
impl<'a> Debug for KeyvalConfig<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for KeyvalConfig<'a>
impl<'a> !Send for KeyvalConfig<'a>
impl<'a> !Sync for KeyvalConfig<'a>
impl<'a> !UnwindSafe for KeyvalConfig<'a>
impl<'a> Freeze for KeyvalConfig<'a>
impl<'a> Unpin for KeyvalConfig<'a>
impl<'a> UnsafeUnpin for KeyvalConfig<'a>
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