pub struct Registry {
pub index_capacity: usize,
pub use_indexing_threshold: usize,
/* private fields */
}
Fields§
§index_capacity: usize
§use_indexing_threshold: usize
Implementations§
Source§impl Registry
impl Registry
pub fn with_basic_types(self) -> Self
pub fn with_index_capacity(self, capacity: usize) -> Self
pub fn with_max_index_capacity(self) -> Self
pub fn with_use_indexing_threshold(self, threshold: usize) -> Self
pub fn with_install(self, f: impl FnOnce(&mut Self)) -> Self
pub fn with_function(self, function: Function) -> Self
pub fn with_type(self, type_: impl Into<Type>) -> Self
pub fn install(&mut self, f: impl FnOnce(&mut Self))
pub fn add_function_handle(&mut self, function_handle: FunctionHandle)
pub fn add_function(&mut self, function: Function) -> FunctionHandle
pub fn remove_function(&mut self, function_handle: FunctionHandle)
pub fn remove_functions(&mut self, query: FunctionQuery<'_>)
pub fn functions(&self) -> impl Iterator<Item = &FunctionHandle>
pub fn find_functions<'a>( &'a self, query: FunctionQuery<'a>, ) -> impl Iterator<Item = FunctionHandle> + '_
pub fn find_function<'a>( &'a self, query: FunctionQuery<'a>, ) -> Option<FunctionHandle>
pub fn add_type_handle(&mut self, type_handle: TypeHandle)
pub fn add_type(&mut self, type_: impl Into<Type>) -> TypeHandle
pub fn remove_type(&mut self, type_handle: TypeHandle)
pub fn remove_types(&mut self, query: TypeQuery<'_>)
pub fn types(&self) -> impl Iterator<Item = &TypeHandle>
pub fn find_types<'a>( &'a self, query: TypeQuery<'a>, ) -> impl Iterator<Item = TypeHandle> + '_
pub fn find_type<'a>(&'a self, query: TypeQuery<'a>) -> Option<TypeHandle>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Registry
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