pub struct Argument {
pub name: Option<String>,
pub c_type: Option<String>,
pub rust_type: Option<TypeRecipe>,
pub hint: Option<String>,
pub description: Option<String>,
pub default: Option<Value>,
pub is_type: bool,
pub do_not_convert: bool,
pub example: Option<TypeRecipe>,
}Fields§
§name: Option<String>§c_type: Option<String>§rust_type: Option<TypeRecipe>§hint: Option<String>§description: Option<String>§default: Option<Value>§is_type: bool§do_not_convert: bool§example: Option<TypeRecipe>Implementations§
Source§impl Argument
impl Argument
Sourcepub fn python_unwrapped_ctype(
&self,
typemap: &HashMap<String, String>,
) -> String
pub fn python_unwrapped_ctype( &self, typemap: &HashMap<String, String>, ) -> String
retrieve the python ctype corresponding to the type inside FfiResult<*>
Sourcepub fn python_origin_ctype(&self, typemap: &HashMap<String, String>) -> String
pub fn python_origin_ctype(&self, typemap: &HashMap<String, String>) -> String
retrieve the python ctypes corresponding to the origin of a type (subtypes/args omitted)
pub fn python_type_hint( &self, hierarchy: &HashMap<String, Vec<String>>, ) -> Option<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnwindSafe for Argument
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