pub struct Platform { /* private fields */ }
Implementations§
source§impl Platform
impl Platform
pub fn by_name(name: &str) -> Option<Ref<Self>>
pub fn list_all() -> Array<Platform>
pub fn list_by_arch(arch: &CoreArchitecture) -> Array<Platform>
pub fn list_by_os(name: &str) -> Array<Platform>
pub fn list_by_os_and_arch( name: &str, arch: &CoreArchitecture, ) -> Array<Platform>
pub fn list_available_os() -> Array<BnString>
pub fn new<A: Architecture>(arch: &A, name: &str) -> Ref<Self>
pub fn name(&self) -> String
pub fn arch(&self) -> CoreArchitecture
pub fn type_container(&self) -> TypeContainer
sourcepub fn get_type_libraries_by_name(&self, name: &str) -> Array<TypeLibrary>
pub fn get_type_libraries_by_name(&self, name: &str) -> Array<TypeLibrary>
Get all the type libraries that have been registered with the name.
NOTE: This is a list because libraries can have alternate_names
, use Platform::get_type_library_by_name
if you want to get the type library with that name, skipping alternate names.
sourcepub fn get_type_library_by_name(&self, name: &str) -> Option<Ref<TypeLibrary>>
pub fn get_type_library_by_name(&self, name: &str) -> Option<Ref<TypeLibrary>>
Get the type library with the given name.
NOTE: This finds the first type library that has the given name, skipping alternate names.
pub fn register_os(&self, os: &str)
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