pub struct FunctionSignature<'a> {
pub arguments: Vec<FnArg<'a>>,
pub python_signature: PythonSignature,
pub attribute: Option<KeywordAttribute<signature, Signature>>,
}
Fields§
§arguments: Vec<FnArg<'a>>
§python_signature: PythonSignature
§attribute: Option<KeywordAttribute<signature, Signature>>
Implementations§
Source§impl<'a> FunctionSignature<'a>
impl<'a> FunctionSignature<'a>
pub fn from_arguments_and_attribute( arguments: Vec<FnArg<'a>>, attribute: KeywordAttribute<signature, Signature>, ) -> Result<Self>
Sourcepub fn from_arguments(arguments: Vec<FnArg<'a>>) -> Result<Self>
pub fn from_arguments(arguments: Vec<FnArg<'a>>) -> Result<Self>
Without #[pyo3(signature)]
or #[args]
- just take the Rust function arguments as positional.
fn default_value_for_parameter(&self, parameter: &str) -> String
pub fn text_signature(&self, self_argument: Option<&str>) -> String
Auto Trait Implementations§
impl<'a> Freeze for FunctionSignature<'a>
impl<'a> RefUnwindSafe for FunctionSignature<'a>
impl<'a> !Send for FunctionSignature<'a>
impl<'a> !Sync for FunctionSignature<'a>
impl<'a> Unpin for FunctionSignature<'a>
impl<'a> UnwindSafe for FunctionSignature<'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