pub struct PythonSignature {
pub positional_parameters: Vec<String>,
pub positional_only_parameters: usize,
pub required_positional_parameters: usize,
pub varargs: Option<String>,
pub keyword_only_parameters: Vec<(String, bool)>,
pub kwargs: Option<String>,
}
Fields§
§positional_parameters: Vec<String>
§positional_only_parameters: usize
§required_positional_parameters: usize
§varargs: Option<String>
§keyword_only_parameters: Vec<(String, bool)>
§kwargs: Option<String>
Implementations§
Source§impl PythonSignature
impl PythonSignature
pub fn has_no_args(&self) -> bool
Trait Implementations§
Source§impl Default for PythonSignature
impl Default for PythonSignature
Source§fn default() -> PythonSignature
fn default() -> PythonSignature
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PythonSignature
impl RefUnwindSafe for PythonSignature
impl Send for PythonSignature
impl Sync for PythonSignature
impl Unpin for PythonSignature
impl UnwindSafe for PythonSignature
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