Struct autocxx_engine::ParsedFile
source · pub struct ParsedFile(/* private fields */);
Expand description
A Rust file parsed by autocxx. May contain zero or more autocxx ‘engines’,
i.e. the IncludeCpp
class, corresponding to zero or more include_cpp
macros within this file. Also contains syn::Item
structures for all
the rest of the Rust code, such that it can be reconstituted if necessary.
Implementations§
source§impl ParsedFile
impl ParsedFile
sourcepub fn get_autocxxes(&self) -> impl Iterator<Item = &IncludeCppEngine>
pub fn get_autocxxes(&self) -> impl Iterator<Item = &IncludeCppEngine>
Get all the autocxx include_cpp
macros found in this file.
sourcepub fn get_rs_outputs(&self) -> impl Iterator<Item = RsOutput<'_>>
pub fn get_rs_outputs(&self) -> impl Iterator<Item = RsOutput<'_>>
Get all the areas of Rust code which need to be built for these bindings.
A shortcut for get_autocxxes()
then calling get_rs_output
on each.
sourcepub fn get_cpp_buildables(&self) -> impl Iterator<Item = &dyn CppBuildable>
pub fn get_cpp_buildables(&self) -> impl Iterator<Item = &dyn CppBuildable>
Get all items which can result in C++ code
pub fn resolve_all( &mut self, autocxx_inc: Vec<PathBuf>, extra_clang_args: &[&str], dep_recorder: Option<Box<dyn RebuildDependencyRecorder>>, codegen_options: &CodegenOptions<'_>, ) -> Result<(), ParseError>
Auto Trait Implementations§
impl Freeze for ParsedFile
impl RefUnwindSafe for ParsedFile
impl !Send for ParsedFile
impl !Sync for ParsedFile
impl Unpin for ParsedFile
impl UnwindSafe for ParsedFile
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more