pub struct DatasetSpec {
pub bench: Bench,
pub filename: &'static str,
pub url: &'static str,
pub sha256: &'static str,
pub bytes: u64,
}Expand description
Static descriptor for one dataset file.
Fields§
§bench: BenchBench this file feeds.
filename: &'static strFilename under ~/.mnem/bench-data/<bench>/.
url: &'static strDirect download URL. Picked to be a bare-bytes endpoint
(HuggingFace resolve/main/...) so we do not need a JSON
parser to find the artefact.
sha256: &'static strExpected sha256 of the downloaded bytes (lower-case hex). Empty string disables the check (used during dev only).
bytes: u64Approximate bytes (for the progress bar baseline).
Trait Implementations§
Source§impl Clone for DatasetSpec
impl Clone for DatasetSpec
Source§fn clone(&self) -> DatasetSpec
fn clone(&self) -> DatasetSpec
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 moreAuto Trait Implementations§
impl Freeze for DatasetSpec
impl RefUnwindSafe for DatasetSpec
impl Send for DatasetSpec
impl Sync for DatasetSpec
impl Unpin for DatasetSpec
impl UnsafeUnpin for DatasetSpec
impl UnwindSafe for DatasetSpec
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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