pub struct LoraModelRegistry { /* private fields */ }Implementations§
Source§impl LoraModelRegistry
impl LoraModelRegistry
pub fn new( base_model_id: impl Into<String>, adapters: Vec<LoraAdapterModel>, ) -> Self
pub fn is_enabled(&self) -> bool
Trait Implementations§
Source§impl Clone for LoraModelRegistry
impl Clone for LoraModelRegistry
Source§fn clone(&self) -> LoraModelRegistry
fn clone(&self) -> LoraModelRegistry
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 moreSource§impl Debug for LoraModelRegistry
impl Debug for LoraModelRegistry
Source§impl Default for LoraModelRegistry
impl Default for LoraModelRegistry
Source§fn default() -> LoraModelRegistry
fn default() -> LoraModelRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoraModelRegistry
impl RefUnwindSafe for LoraModelRegistry
impl Send for LoraModelRegistry
impl Sync for LoraModelRegistry
impl Unpin for LoraModelRegistry
impl UnsafeUnpin for LoraModelRegistry
impl UnwindSafe for LoraModelRegistry
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