pub struct ModuleAdapter<F: Float> {
pub module_info: ModuleInfo,
pub config: IntegrationConfig,
/* private fields */
}Expand description
Module adapter for standardizing interfaces
Fields§
§module_info: ModuleInfoModule information
config: IntegrationConfigConfiguration
Implementations§
Source§impl<F: Float> ModuleAdapter<F>
impl<F: Float> ModuleAdapter<F>
Sourcepub fn new(module_info: ModuleInfo, config: IntegrationConfig) -> Self
pub fn new(module_info: ModuleInfo, config: IntegrationConfig) -> Self
Create new module adapter
Sourcepub fn adapt_for_module<'a>(
&self,
data: &SciRS2Data<'a, F>,
target_module: &str,
) -> Result<SciRS2Data<'a, F>, IntegrationError>
pub fn adapt_for_module<'a>( &self, data: &SciRS2Data<'a, F>, target_module: &str, ) -> Result<SciRS2Data<'a, F>, IntegrationError>
Adapt data for target module
Sourcepub fn cache_conversion(
&self,
key: String,
data: Vec<u8>,
) -> Result<(), IntegrationError>
pub fn cache_conversion( &self, key: String, data: Vec<u8>, ) -> Result<(), IntegrationError>
Cache conversion result
Auto Trait Implementations§
impl<F> Freeze for ModuleAdapter<F>
impl<F> RefUnwindSafe for ModuleAdapter<F>where
F: RefUnwindSafe,
impl<F> Send for ModuleAdapter<F>
impl<F> Sync for ModuleAdapter<F>
impl<F> Unpin for ModuleAdapter<F>where
F: Unpin,
impl<F> UnsafeUnpin for ModuleAdapter<F>
impl<F> UnwindSafe for ModuleAdapter<F>where
F: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more