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

source

pub fn emit_file(&self, auto_out_dir: &Path) -> File

source

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
source

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§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.