#[non_exhaustive]pub enum RepoType {
Model,
Dataset,
Space,
Kernel,
}Expand description
A repository kind supported by the Hugging Face cache layout.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Model
A model repository stored below a models-- directory.
Dataset
A dataset repository stored below a datasets-- directory.
Space
A Space repository stored below a spaces-- directory.
Kernel
A Kernel repository stored below a kernels-- directory.
Implementations§
Trait Implementations§
impl Copy for RepoType
impl Eq for RepoType
Source§impl Ord for RepoType
impl Ord for RepoType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for RepoType
impl PartialOrd for RepoType
impl StructuralPartialEq for RepoType
Auto Trait Implementations§
impl Freeze for RepoType
impl RefUnwindSafe for RepoType
impl Send for RepoType
impl Sync for RepoType
impl Unpin for RepoType
impl UnsafeUnpin for RepoType
impl UnwindSafe for RepoType
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