pub struct Converter {}Expand description
Maps CType constructs to Pythonic constructs.
Implementations§
Source§impl Converter
impl Converter
pub fn documentation(&self, documentation: &Documentation) -> String
pub fn to_type_hint(&self, the_type: &CType, is_parameter: bool) -> String
pub fn to_ctypes_name( &self, the_type: &CType, with_type_annotations: bool, ) -> String
pub fn to_type_hint_in(&self, the_type: &CType, is_parameter: bool) -> String
pub fn to_type_hint_out(&self, the_type: &CType) -> String
pub fn constant_value_to_value(&self, value: &ConstantValue) -> String
pub fn fnpointer_to_typename(&self, fn_pointer: &FnPointerType) -> String
Auto Trait Implementations§
impl Freeze for Converter
impl RefUnwindSafe for Converter
impl Send for Converter
impl Sync for Converter
impl Unpin for Converter
impl UnwindSafe for Converter
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