pub enum LoraError {
Show 15 variants
Load(LoadError),
NotAnAdapter {
path: PathBuf,
got: String,
},
NotLora {
path: PathBuf,
got: String,
},
ArchMismatch {
path: PathBuf,
adapter: String,
base: String,
},
UnexpectedSuffix {
path: PathBuf,
name: String,
},
MissingComponent {
path: PathBuf,
name: String,
},
Alora {
path: PathBuf,
n: usize,
},
NotTwoD {
path: PathBuf,
name: String,
shape: Vec<u64>,
},
NotInBase {
path: PathBuf,
name: String,
},
Shape {
path: PathBuf,
name: String,
rows: usize,
cols: usize,
a: [usize; 2],
b: [usize; 2],
},
NotTransposed {
path: PathBuf,
name: String,
a: [usize; 2],
b: [usize; 2],
},
RoutedExperts {
path: PathBuf,
name: String,
},
NoProjection {
path: PathBuf,
name: String,
},
TiedHead {
path: PathBuf,
},
StoredExperts {
path: PathBuf,
name: String,
},
}Expand description
Why an adapter file, or its match against a base, was refused.
Variants§
Load(LoadError)
NotAnAdapter
NotLora
ArchMismatch
UnexpectedSuffix
MissingComponent
Alora
NotTwoD
NotInBase
Shape
NotTransposed
RoutedExperts
NoProjection
TiedHead
StoredExperts
Trait Implementations§
Source§impl Error for LoraError
impl Error for LoraError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for LoraError
impl !UnwindSafe for LoraError
impl Freeze for LoraError
impl Send for LoraError
impl Sync for LoraError
impl Unpin for LoraError
impl UnsafeUnpin for LoraError
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