Struct cxx_auto::CxxAutoArtifactInfo
source · pub struct CxxAutoArtifactInfo {Show 31 fields
pub path_components: Vec<&'static str>,
pub path_descendants: Vec<&'static str>,
pub cxx_include: &'static str,
pub cxx_namespace: &'static str,
pub cxx_name: &'static str,
pub rust_name: &'static str,
pub lifetimes: IndexMap<&'static str, Vec<&'static str>>,
pub align: usize,
pub size: usize,
pub cxx_has_operator_equal: bool,
pub cxx_has_operator_not_equal: bool,
pub cxx_has_operator_less_than: bool,
pub cxx_has_operator_less_than_or_equal: bool,
pub cxx_has_operator_greater_than: bool,
pub cxx_has_operator_greater_than_or_equal: bool,
pub is_rust_cxx_extern_type_trivial: bool,
pub is_rust_unpin: bool,
pub is_rust_send: bool,
pub is_rust_sync: bool,
pub is_rust_copy: bool,
pub is_rust_debug: bool,
pub is_rust_default: bool,
pub is_rust_display: bool,
pub is_rust_drop: bool,
pub is_rust_copy_new: bool,
pub is_rust_move_new: bool,
pub is_rust_eq: bool,
pub is_rust_partial_eq: bool,
pub is_rust_partial_ord: bool,
pub is_rust_ord: bool,
pub is_rust_hash: bool,
}
Fields§
§path_components: Vec<&'static str>
§path_descendants: Vec<&'static str>
§cxx_include: &'static str
§cxx_namespace: &'static str
§cxx_name: &'static str
§rust_name: &'static str
§lifetimes: IndexMap<&'static str, Vec<&'static str>>
§align: usize
§size: usize
§cxx_has_operator_equal: bool
§cxx_has_operator_not_equal: bool
§cxx_has_operator_less_than: bool
§cxx_has_operator_less_than_or_equal: bool
§cxx_has_operator_greater_than: bool
§cxx_has_operator_greater_than_or_equal: bool
§is_rust_cxx_extern_type_trivial: bool
§is_rust_unpin: bool
§is_rust_send: bool
§is_rust_sync: bool
§is_rust_copy: bool
§is_rust_debug: bool
§is_rust_default: bool
§is_rust_display: bool
§is_rust_drop: bool
§is_rust_copy_new: bool
§is_rust_move_new: bool
§is_rust_eq: bool
§is_rust_partial_eq: bool
§is_rust_partial_ord: bool
§is_rust_ord: bool
§is_rust_hash: bool
Implementations§
source§impl CxxAutoArtifactInfo
impl CxxAutoArtifactInfo
pub fn emit_file(&self, auto_out_dir: &Path) -> File
sourcepub fn write_module_for_dir(
auto_out_dir_root: &Path,
path_components: &[&str],
path_descendants: &[&str]
) -> BoxResult<()>
pub fn write_module_for_dir( auto_out_dir_root: &Path, path_components: &[&str], path_descendants: &[&str] ) -> BoxResult<()>
Errors
Will return Err
under the following circumstances:
- failure to create the output parent directory for the generated module
- failure to run
rustfmt
on the generated module - failure to write the generated module to disk
sourcepub fn write_module_for_file(&self, auto_out_dir_root: &Path) -> BoxResult<()>
pub fn write_module_for_file(&self, auto_out_dir_root: &Path) -> BoxResult<()>
Errors
Will return Err
under the following circumstances:
- failure to create the output parent directory for the generated module
- failure to run
rustfmt
on the generated module - failure to write the generated module to disk
Auto Trait Implementations§
impl RefUnwindSafe for CxxAutoArtifactInfo
impl Send for CxxAutoArtifactInfo
impl Sync for CxxAutoArtifactInfo
impl Unpin for CxxAutoArtifactInfo
impl UnwindSafe for CxxAutoArtifactInfo
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