[−][src]Struct c2rust_transpile::convert_type::TypeConverter
Fields
translate_valist: bool
Methods
impl TypeConverter
[src]
pub fn new(emit_no_std: bool) -> TypeConverter
[src]
pub fn features_used(&self) -> &HashSet<&'static str>
[src]
pub fn declare_decl_name(&mut self, decl_id: CDeclId, name: &str) -> String
[src]
pub fn alias_decl_name(&mut self, new_decl_id: CDeclId, old_decl_id: CDeclId)
[src]
pub fn resolve_decl_name(&self, decl_id: CDeclId) -> Option<String>
[src]
pub fn declare_field_name(
&mut self,
record_id: CRecordId,
field_id: CFieldId,
name: &str
) -> String
[src]
&mut self,
record_id: CRecordId,
field_id: CFieldId,
name: &str
) -> String
pub fn resolve_field_name(
&self,
record_id: Option<CRecordId>,
field_id: CFieldId
) -> Option<String>
[src]
&self,
record_id: Option<CRecordId>,
field_id: CFieldId
) -> Option<String>
Resolve the Rust name associated with a field declaration. The optional record_id is used as a hint to speed up the process of finding the field's name.
pub fn convert_pointer(
&mut self,
ctxt: &TypedAstContext,
qtype: CQualTypeId
) -> Result<P<Ty>, TranslationError>
[src]
&mut self,
ctxt: &TypedAstContext,
qtype: CQualTypeId
) -> Result<P<Ty>, TranslationError>
pub fn is_inner_type_valist(ctxt: &TypedAstContext, qtype: CQualTypeId) -> bool
[src]
pub fn convert(
&mut self,
ctxt: &TypedAstContext,
ctype: CTypeId
) -> Result<P<Ty>, TranslationError>
[src]
&mut self,
ctxt: &TypedAstContext,
ctype: CTypeId
) -> Result<P<Ty>, TranslationError>
Convert a C
type to a Rust
one. For the moment, these are expected to have compatible
memory layouts.
Auto Trait Implementations
impl Send for TypeConverter
impl Sync for TypeConverter
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<E> SpecializationError for E
[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
[src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
impl<T> Erased for T
[src]
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Make for T
[src]
impl<T> MaybeResult for T
[src]
impl<'a, T> Captures for T where
T: ?Sized,
[src]
T: ?Sized,