Struct cbindgen::FunctionConfig
[−]
[src]
pub struct FunctionConfig { pub prefix: Option<String>, pub postfix: Option<String>, pub args: Layout, pub rename_args: Option<RenameRule>, }
Settings to apply to generated functions.
Fields
prefix: Option<String>
Optional text to output before each function declaration
postfix: Option<String>
Optional text to output after each function declaration
args: Layout
The style to layout the args
rename_args: Option<RenameRule>
The rename rule to apply to function args
Methods
impl FunctionConfig
[src]
fn prefix(&self, annotations: &AnnotationSet) -> Option<String>
[src]
fn postfix(&self, annotations: &AnnotationSet) -> Option<String>
[src]
Trait Implementations
impl Debug for FunctionConfig
[src]
impl Clone for FunctionConfig
[src]
fn clone(&self) -> FunctionConfig
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for FunctionConfig
[src]
fn default() -> FunctionConfig
[src]
Returns the "default value" for a type. Read more