pub enum CentsArg<'a> {
Absent,
Bool(bool),
Str(&'a str),
Other,
}Expand description
The cents= argument as the binder classifies the caller’s Python object.
Variants§
Absent
The kwarg was not supplied at all (Python default True).
Bool(bool)
A real Python bool.
Str(&'a str)
A Python str (only the three keywords are meaningful).
Other
Any other type — Python keeps it as-is, and the caller’s
_cents in (True, False) guard then rejects it.
Auto Trait Implementations§
impl<'a> Freeze for CentsArg<'a>
impl<'a> RefUnwindSafe for CentsArg<'a>
impl<'a> Send for CentsArg<'a>
impl<'a> Sync for CentsArg<'a>
impl<'a> Unpin for CentsArg<'a>
impl<'a> UnsafeUnpin for CentsArg<'a>
impl<'a> UnwindSafe for CentsArg<'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