pub struct ParamType {
pub inner: ParamTypeInner,
pub is_reference: bool,
}
Fields§
§inner: ParamTypeInner
§is_reference: bool
Implementations§
Source§impl ParamType
impl ParamType
pub fn to_c(&self, with_struct: bool) -> String
pub fn to_go(&self) -> String
pub fn c_to_go_field_converter( &self, mapping: &HashMap<Ident, u8>, ) -> (String, u8)
pub fn c_to_go_field_converter_owned(&self) -> String
pub fn go_to_c_field_counter( &self, mapping: &HashMap<Ident, u8>, ) -> (String, u8)
pub fn go_to_c_field_converter( &self, mapping: &HashMap<Ident, u8>, ) -> (String, u8)
pub fn to_rust_ref(&self, prefix: Option<&TokenStream>) -> TokenStream
Trait Implementations§
Source§impl ToTokens for ParamType
impl ToTokens for ParamType
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for ParamType
impl RefUnwindSafe for ParamType
impl !Send for ParamType
impl !Sync for ParamType
impl Unpin for ParamType
impl UnwindSafe for ParamType
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
Source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.