[][src]Struct dart_bindgen::CodegenBuilder

pub struct CodegenBuilder { /* fields omitted */ }

The Codegen Builder

start by calling Codegen::builder()

Implementations

impl CodegenBuilder[src]

pub fn with_src_header(self, path: impl Into<PathBuf>) -> Self[src]

The Input C header file

pub fn with_lib_name(self, name: impl Into<String>) -> Self[src]

The output lib name, for example libfoo

used for docs

pub fn with_config(self, config: DynamicLibraryConfig) -> Self[src]

Defines, how the dynamic library should be loaded on each of dart's known platforms.

pub const fn with_allo_isolate(self) -> Self[src]

Integration with allo-isolate

This allow dart-bindgen to add the code required by allo-isolate i.e store_dart_post_cobject fn

pub fn build(self) -> Result<Codegen, CodegenError>[src]

Consumes the builder and validate everyting, then create the Codegen

Trait Implementations

impl Clone for CodegenBuilder[src]

impl Debug for CodegenBuilder[src]

impl Default for CodegenBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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 = Infallible

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.