Expand description
The builder to use in build.rs file to generate the interface file
Implementations
sourceimpl<S: AsRef<Path>> Generator<S>
impl<S: AsRef<Path>> Generator<S>
sourcepub fn new(
type_case: TypeCases,
language: Language,
scr_folder: S
) -> Generator<S>
pub fn new(
type_case: TypeCases,
language: Language,
scr_folder: S
) -> Generator<S>
Creates a new generator instance
scr_folder
refers to the starting folder where it is recursively walked
through to find other files
sourcepub fn generate_interface<I: AsRef<Path>>(self, interface_file_path: I)
pub fn generate_interface<I: AsRef<Path>>(self, interface_file_path: I)
interface_file_path
refers to the path of the output file.
If it exists, it would be overwritten
Auto Trait Implementations
impl<P> RefUnwindSafe for Generator<P>where
P: RefUnwindSafe,
impl<P> Send for Generator<P>where
P: Send,
impl<P> Sync for Generator<P>where
P: Sync,
impl<P> Unpin for Generator<P>where
P: Unpin,
impl<P> UnwindSafe for Generator<P>where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more