pub enum KwVal {
Str(String),
Bool(bool),
Int(i64),
List(Vec<String>),
None,
}Expand description
A grammatical-kwargs value (case=, gender=, reading=, …).
Covers every type the library’s converter signatures accept: str, bool,
int, list-of-str, and an explicit None. Python bools are ints, so the
binding must try Bool before Int when extracting.
Variants§
Trait Implementations§
impl StructuralPartialEq for KwVal
Auto Trait Implementations§
impl Freeze for KwVal
impl RefUnwindSafe for KwVal
impl Send for KwVal
impl Sync for KwVal
impl Unpin for KwVal
impl UnsafeUnpin for KwVal
impl UnwindSafe for KwVal
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