pub struct General {
pub name: KernelName,
pub version: Option<usize>,
pub license: Option<String>,
pub upstream: Option<Url>,
pub backends: Vec<Backend>,
pub hub: Option<Hub>,
pub python_depends: Option<Vec<String>>,
pub cuda: Option<CudaGeneral>,
pub neuron: Option<NeuronGeneral>,
pub xpu: Option<XpuGeneral>,
}Fields§
§name: KernelName§version: Option<usize>§license: Option<String>Hugging Face Hub license identifier.
upstream: Option<Url>Source repository or reference for the kernel code.
backends: Vec<Backend>§hub: Option<Hub>§python_depends: Option<Vec<String>>§cuda: Option<CudaGeneral>§neuron: Option<NeuronGeneral>§xpu: Option<XpuGeneral>Implementations§
Source§impl General
impl General
pub fn python_depends( &self, ) -> Box<dyn Iterator<Item = Result<(&str, &PythonDependency)>> + '_>
pub fn backend_python_depends( &self, backend: Backend, ) -> Box<dyn Iterator<Item = Result<(&str, &PythonDependency)>> + '_>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for General
impl RefUnwindSafe for General
impl Send for General
impl Sync for General
impl Unpin for General
impl UnsafeUnpin for General
impl UnwindSafe for General
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> 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