pub struct ParsedFunction {
pub name: String,
pub params: Vec<(String, String)>,
pub return_type: String,
}Expand description
Result of parsing a single function signature from a .pyi stub
Fields§
§name: StringPython function name
params: Vec<(String, String)>Parameter types (name -> type string)
return_type: StringReturn type string
Trait Implementations§
Source§impl Clone for ParsedFunction
impl Clone for ParsedFunction
Source§fn clone(&self) -> ParsedFunction
fn clone(&self) -> ParsedFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParsedFunction
impl Debug for ParsedFunction
Source§impl PartialEq for ParsedFunction
impl PartialEq for ParsedFunction
impl StructuralPartialEq for ParsedFunction
Auto Trait Implementations§
impl Freeze for ParsedFunction
impl RefUnwindSafe for ParsedFunction
impl Send for ParsedFunction
impl Sync for ParsedFunction
impl Unpin for ParsedFunction
impl UnwindSafe for ParsedFunction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more