Enum pyo3_macros_backend::method::FnType
source · pub enum FnType {
Getter(SelfType),
Setter(SelfType),
Fn(SelfType),
FnNew,
FnNewClass(Span),
FnClass(Span),
FnStatic,
FnModule(Span),
ClassAttribute,
}
Variants§
Getter(SelfType)
Setter(SelfType)
Fn(SelfType)
FnNew
FnNewClass(Span)
FnClass(Span)
FnStatic
FnModule(Span)
ClassAttribute
Implementations§
source§impl FnType
impl FnType
pub fn skip_first_rust_argument_in_python_signature(&self) -> bool
pub fn self_arg( &self, cls: Option<&Type>, error_mode: ExtractErrorMode, holders: &mut Holders, ctx: &Ctx ) -> TokenStream
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FnType
impl RefUnwindSafe for FnType
impl !Send for FnType
impl !Sync for FnType
impl Unpin for FnType
impl UnwindSafe for FnType
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