pub struct OracleSnippet {
pub task_slug: &'static str,
pub language_slug: &'static str,
pub language_label: &'static str,
pub source: KnowledgeSource,
pub source_url: &'static str,
pub code: &'static str,
pub expected_output: &'static str,
}Expand description
A reviewed code snippet discovered from an external knowledge source.
language_slug is the lowercase identifier a prompt uses (kotlin),
language_label is the display form (Kotlin). expected_output is the
deterministic stdout the snippet prints, so the solver can show “code + the
result” exactly as the built-in catalogue does.
Fields§
§task_slug: &'static str§language_slug: &'static str§language_label: &'static str§source: KnowledgeSource§source_url: &'static str§code: &'static str§expected_output: &'static strTrait Implementations§
Source§impl Clone for OracleSnippet
impl Clone for OracleSnippet
Source§fn clone(&self) -> OracleSnippet
fn clone(&self) -> OracleSnippet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OracleSnippet
Auto Trait Implementations§
impl Freeze for OracleSnippet
impl RefUnwindSafe for OracleSnippet
impl Send for OracleSnippet
impl Sync for OracleSnippet
impl Unpin for OracleSnippet
impl UnsafeUnpin for OracleSnippet
impl UnwindSafe for OracleSnippet
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