[][src]Struct cbindgen::FunctionConfig

pub struct FunctionConfig {
    pub prefix: Option<String>,
    pub postfix: Option<String>,
    pub must_use: 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

must_use: Option<String>

The way to annotation this function as #[must_use].

args: Layout

The style to layout the args

rename_args: Option<RenameRule>

The rename rule to apply to function args

Trait Implementations

impl Clone for FunctionConfig[src]

impl Default for FunctionConfig[src]

impl Debug for FunctionConfig[src]

impl<'de> Deserialize<'de> for FunctionConfig where
    FunctionConfig: Default
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]