pub struct Candidate {
pub image: Image,
pub seed: u64,
pub score: f32,
}Expand description
One generated image together with the seed that produced it and its reward.
Fields§
§image: ImageThe generated image.
seed: u64Seed used to generate it (for reproducing the exact result).
score: f32Reward from the crate::Scorer; higher is better.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidate
impl UnwindSafe for Candidate
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