pub struct Registry { /* private fields */ }
Implementations§
§impl Registry
impl Registry
pub fn with_basic_types(self) -> Registry
pub fn with_function(self, function: Function) -> Registry
pub fn with_struct(self, struct_type: Struct) -> Registry
pub fn add_function_handle(&mut self, function_handle: Arc<Function, Global>)
pub fn add_function(&mut self, function: Function) -> Arc<Function, Global>
pub fn remove_function(&mut self, function_handle: Arc<Function, Global>)
pub fn remove_functions(&mut self, query: FunctionQuery<'_>)
pub fn functions(&self) -> impl Iterator<Item = &Arc<Function, Global>>
pub fn find_functions<'a>( &'a self, query: FunctionQuery<'a> ) -> impl Iterator<Item = Arc<Function, Global>> + 'a
pub fn find_function<'a>( &'a self, query: FunctionQuery<'a> ) -> Option<Arc<Function, Global>>
pub fn add_struct_handle(&mut self, struct_handle: Arc<Struct, Global>)
pub fn add_struct(&mut self, struct_type: Struct) -> Arc<Struct, Global>
pub fn remove_struct(&mut self, struct_handle: Arc<Struct, Global>)
pub fn remove_structs(&mut self, query: StructQuery<'_>)
pub fn structs(&self) -> impl Iterator<Item = &Arc<Struct, Global>>
pub fn find_structs<'a>( &'a self, query: StructQuery<'a> ) -> impl Iterator<Item = Arc<Struct, Global>> + 'a
pub fn find_struct<'a>( &'a self, query: StructQuery<'a> ) -> Option<Arc<Struct, Global>>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl !UnwindSafe for Registry
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more