#[non_exhaustive]pub struct Implementation { /* private fields */ }Expand description
Which code computed a score. Build it with crate::implementation! so the
crate name and version come from Cargo, not from hand-typed strings.
Implementations§
Source§impl Implementation
impl Implementation
Sourcepub const fn new(
crate_name: &'static str,
crate_version: &'static str,
score_revision: u32,
) -> Self
pub const fn new( crate_name: &'static str, crate_version: &'static str, score_revision: u32, ) -> Self
A CPU implementation with no build id.
Sourcepub const fn crate_name(&self) -> &'static str
pub const fn crate_name(&self) -> &'static str
Implementing crate name.
Sourcepub const fn crate_version(&self) -> &'static str
pub const fn crate_version(&self) -> &'static str
Implementing crate version.
Sourcepub const fn score_revision(&self) -> u32
pub const fn score_revision(&self) -> u32
Output definition revision.
Sourcepub const fn with_backend(self, backend: Backend) -> Self
pub const fn with_backend(self, backend: Backend) -> Self
Replace the backend.
Sourcepub const fn with_build(self, build: Option<&'static str>) -> Self
pub const fn with_build(self, build: Option<&'static str>) -> Self
Record a build id.
Trait Implementations§
Source§impl Clone for Implementation
impl Clone for Implementation
Source§fn clone(&self) -> Implementation
fn clone(&self) -> Implementation
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 Implementation
Source§impl Debug for Implementation
impl Debug for Implementation
impl Eq for Implementation
Source§impl Hash for Implementation
impl Hash for Implementation
Source§impl PartialEq for Implementation
impl PartialEq for Implementation
impl StructuralPartialEq for Implementation
Auto Trait Implementations§
impl Freeze for Implementation
impl RefUnwindSafe for Implementation
impl Send for Implementation
impl Sync for Implementation
impl Unpin for Implementation
impl UnsafeUnpin for Implementation
impl UnwindSafe for Implementation
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