Enum miden_assembly::LibraryError
source · pub enum LibraryError {
Show 14 variants
DeserializationFailed(String, String),
DuplicateModulePath(String),
DuplicateNamespace(String),
FileIO(String, String),
InconsistentNamespace {
expected: String,
actual: String,
},
InvalidNamespace(LabelError),
InvalidPath(PathError),
InvalidVersionNumber {
version: String,
err_msg: String,
},
MissingVersionComponent {
version: String,
component: String,
},
ModuleNotFound(String),
NoModulesInLibrary {
name: LibraryNamespace,
},
TooManyDependenciesInLibrary {
name: LibraryNamespace,
num_dependencies: usize,
max_dependencies: usize,
},
TooManyModulesInLibrary {
name: LibraryNamespace,
num_modules: usize,
max_modules: usize,
},
TooManyVersionComponents {
version: String,
},
}Variants§
DeserializationFailed(String, String)
DuplicateModulePath(String)
DuplicateNamespace(String)
FileIO(String, String)
InconsistentNamespace
InvalidNamespace(LabelError)
InvalidPath(PathError)
InvalidVersionNumber
MissingVersionComponent
ModuleNotFound(String)
NoModulesInLibrary
Fields
§
name: LibraryNamespaceTooManyDependenciesInLibrary
TooManyModulesInLibrary
TooManyVersionComponents
Implementations§
source§impl LibraryError
impl LibraryError
pub fn deserialization_error(path: &str, message: &str) -> Self
pub fn duplicate_module_path(path: &str) -> Self
pub fn duplicate_namespace(namespace: &str) -> Self
pub fn file_error(path: &str, message: &str) -> Self
pub fn inconsistent_namespace(expected: &str, actual: &str) -> Self
pub fn invalid_namespace(err: LabelError) -> Self
pub fn invalid_version_number(version: &str, err_msg: String) -> Self
pub fn missing_version_component(version: &str, component: &str) -> Self
pub fn no_modules_in_library(name: LibraryNamespace) -> Self
pub fn too_many_modules_in_library( name: LibraryNamespace, num_modules: usize, max_modules: usize ) -> Self
pub fn too_many_dependencies_in_library( name: LibraryNamespace, num_dependencies: usize, max_dependencies: usize ) -> Self
pub fn too_many_version_components(version: &str) -> Self
Trait Implementations§
source§impl Clone for LibraryError
impl Clone for LibraryError
source§fn clone(&self) -> LibraryError
fn clone(&self) -> LibraryError
Returns a copy of the value. Read more
1.0.0 · 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 LibraryError
impl Debug for LibraryError
source§impl Display for LibraryError
impl Display for LibraryError
source§impl Error for LibraryError
impl Error for LibraryError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<LibraryError> for AssemblyError
impl From<LibraryError> for AssemblyError
source§fn from(err: LibraryError) -> Self
fn from(err: LibraryError) -> Self
Converts to this type from the input type.
source§impl From<LibraryError> for Error
impl From<LibraryError> for Error
source§fn from(err: LibraryError) -> Error
fn from(err: LibraryError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for LibraryError
impl Send for LibraryError
impl Sync for LibraryError
impl Unpin for LibraryError
impl UnwindSafe for LibraryError
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