pub struct Platform { /* private fields */ }
Implementations§
source§impl Platform
impl Platform
pub fn by_name<S: BnStrCompatible>(name: S) -> Option<Ref<Self>>
pub fn list_all() -> Array<Platform>
pub fn list_by_arch(arch: &CoreArchitecture) -> Array<Platform>
pub fn list_by_os<S: BnStrCompatible>(name: S) -> Array<Platform>
pub fn list_by_os_and_arch<S: BnStrCompatible>( name: S, arch: &CoreArchitecture, ) -> Array<Platform>
pub fn list_available_os() -> Array<BnString>
pub fn new<A: Architecture, S: BnStrCompatible>(arch: &A, name: S) -> Ref<Self>
pub fn name(&self) -> BnString
pub fn arch(&self) -> CoreArchitecture
pub fn type_container(&self) -> TypeContainer
pub fn get_type_libraries_by_name<T: BnStrCompatible>( &self, name: T, ) -> Array<TypeLibrary>
pub fn register_os<S: BnStrCompatible>(&self, os: S)
pub fn get_default_calling_convention( &self, ) -> Option<Ref<CoreCallingConvention>>
pub fn set_default_calling_convention(&self, cc: &CoreCallingConvention)
pub fn get_cdecl_calling_convention(&self) -> Option<Ref<CoreCallingConvention>>
pub fn set_cdecl_calling_convention(&self, cc: &CoreCallingConvention)
pub fn get_stdcall_calling_convention( &self, ) -> Option<Ref<CoreCallingConvention>>
pub fn set_stdcall_calling_convention(&self, cc: &CoreCallingConvention)
pub fn get_fastcall_calling_convention( &self, ) -> Option<Ref<CoreCallingConvention>>
pub fn set_fastcall_calling_convention(&self, cc: &CoreCallingConvention)
pub fn get_syscall_convention(&self) -> Option<Ref<CoreCallingConvention>>
pub fn set_syscall_convention(&self, cc: &CoreCallingConvention)
pub fn calling_conventions(&self) -> Array<CoreCallingConvention>
pub fn types(&self) -> Array<QualifiedNameAndType>
pub fn variables(&self) -> Array<QualifiedNameAndType>
pub fn functions(&self) -> Array<QualifiedNameAndType>
pub fn preprocess_source( &self, source: &str, file_name: &str, include_dirs: &[BnString], ) -> Result<BnString, TypeParserError>
pub fn parse_types_from_source( &self, src: &str, filename: &str, include_dirs: &[BnString], auto_type_source: &str, ) -> Result<TypeParserResult, TypeParserError>
pub fn parse_types_from_source_file( &self, filename: &str, include_dirs: &[BnString], auto_type_source: &str, ) -> Result<TypeParserResult, TypeParserError>
Trait Implementations§
source§impl CoreArrayProvider for Platform
impl CoreArrayProvider for Platform
source§impl ToOwned for Platform
impl ToOwned for Platform
impl Eq for Platform
impl Send for Platform
impl StructuralPartialEq for Platform
impl Sync for Platform
Auto Trait Implementations§
impl Freeze for Platform
impl RefUnwindSafe for Platform
impl Unpin for Platform
impl UnwindSafe for Platform
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