pub struct Algorithm<'a, State = Initialized> { /* private fields */ }
Implementations§
Source§impl<'a, State> Algorithm<'a, State>
impl<'a, State> Algorithm<'a, State>
pub fn introspection(&self) -> &Introspection
Source§impl<'a> Algorithm<'a, Initialized>
impl<'a> Algorithm<'a, Initialized>
pub fn parameter<T>(
self,
key: &str,
value: impl TryIntoDataContainer<T>,
) -> Result<Self, ParameterError>where
T: ParameterData + HasDataType,
pub fn set_parameter<T>(
&mut self,
key: &str,
value: impl TryIntoDataContainer<T>,
) -> Result<(), ParameterError>where
T: ParameterData + HasDataType,
pub fn configure(self) -> Result<Algorithm<'a, Configured>, ConfigurationError>
Source§impl<'a> Algorithm<'a, Configured>
impl<'a> Algorithm<'a, Configured>
pub fn input<T>(
self,
key: &str,
value: impl TryIntoDataContainer<T>,
) -> Result<Self, InputError>where
T: InputOutputData + HasDataType,
pub fn set_input<T>(
&mut self,
key: &str,
value: impl TryIntoDataContainer<T>,
) -> Result<(), InputError>where
T: InputOutputData + HasDataType,
pub fn compute(&mut self) -> Result<ComputeResult<'a, '_>, ComputeError>
pub fn reset(&mut self) -> Result<(), ResetError>
Auto Trait Implementations§
impl<'a, State> Freeze for Algorithm<'a, State>where
State: Freeze,
impl<'a, State> RefUnwindSafe for Algorithm<'a, State>where
State: RefUnwindSafe,
impl<'a, State = Initialized> !Send for Algorithm<'a, State>
impl<'a, State = Initialized> !Sync for Algorithm<'a, State>
impl<'a, State> Unpin for Algorithm<'a, State>where
State: Unpin,
impl<'a, State> UnwindSafe for Algorithm<'a, State>where
State: 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