pub enum PyFunctionOption {
Name(KeywordAttribute<name, NameLitStr>),
PassModule(pass_module),
Signature(KeywordAttribute<signature, Signature>),
TextSignature(KeywordAttribute<text_signature, TextSignatureAttributeValue>),
Crate(KeywordAttribute<Crate, LitStrValue<Path>>),
}
Variants§
Name(KeywordAttribute<name, NameLitStr>)
PassModule(pass_module)
Signature(KeywordAttribute<signature, Signature>)
TextSignature(KeywordAttribute<text_signature, TextSignatureAttributeValue>)
Crate(KeywordAttribute<Crate, LitStrValue<Path>>)
Trait Implementations§
Source§impl Parse for PyFunctionOption
impl Parse for PyFunctionOption
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for PyFunctionOption
impl RefUnwindSafe for PyFunctionOption
impl !Send for PyFunctionOption
impl !Sync for PyFunctionOption
impl Unpin for PyFunctionOption
impl UnwindSafe for PyFunctionOption
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