Struct python_ast::tree::parameters::Parameter
source · pub struct Parameter {
pub arg: String,
}
Fields§
§arg: String
Trait Implementations§
source§impl CodeGen for Parameter
impl CodeGen for Parameter
§type Context = CodeGenContext
type Context = CodeGenContext
A type, generally an enum, that passes the code generator the context of the node.
§type Options = PythonOptions
type Options = PythonOptions
A struct representing the set of compilation options.
source§fn to_rust(
self,
_ctx: Self::Context,
_options: Self::Options
) -> Result<TokenStream, Box<dyn Error>>
fn to_rust( self, _ctx: Self::Context, _options: Self::Options ) -> Result<TokenStream, Box<dyn Error>>
A trait method to output Rust code in a general sense. The output should be stream of Rust tokens,
however, it is not guaranteed that it will fully compile because of scoping errors and other checks
that don’t occur until later.
source§fn get_docstring(&self) -> Option<String>
fn get_docstring(&self) -> Option<String>
A trait method for extracting a docstring from an object that can have a docstring.
source§impl<'source> FromPyObject<'source> for Parameter
impl<'source> FromPyObject<'source> for Parameter
source§impl PartialEq for Parameter
impl PartialEq for Parameter
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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