#[non_exhaustive]pub enum ContractError {
StdImportCollision {
at: Location,
name: String,
},
DuplicateTool {
at: Location,
name: String,
},
NotAModulePath {
at: Location,
module: String,
segment: String,
},
Spelled {
at: Location,
module: String,
},
ForeignType {
at: Location,
name: String,
module: String,
},
UnaddressedType {
at: Location,
name: String,
dependency: String,
how: String,
},
SharedFlowName {
at: Location,
name: String,
first: String,
second: String,
},
SeveralCrates {
first: String,
second: String,
},
}Expand description
Why a set of Tools has no contract.
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.
StdImportCollision
A Tool has the name of a std module its contract imports.
Fields
DuplicateTool
Two Tools of one name in one module.
NotAModulePath
A Rust module whose path is no Flow module path.
Fields
Spelled
A Rust module whose module path spells a library’s layout and so
names no module: lib directly under the crate root, whose contract
file would be the root module’s, or contract there.
Fields
ForeignType
A Tool reaches a type that a crate the library does not depend on defines.
Fields
UnaddressedType
A Tool reaches a type of a crate the library depends on in a way that gives it no Flow address: by a registry version, or by a git URL without a version tag.
Fields
Distinct Rust types that share one Flow name in one module.
SeveralCrates
Tools of two crates in one contract: a contract is one library’s.
Trait Implementations§
Source§impl Clone for ContractError
impl Clone for ContractError
Source§impl Debug for ContractError
impl Debug for ContractError
Source§impl Display for ContractError
impl Display for ContractError
impl Eq for ContractError
Source§impl Error for ContractError
impl Error for ContractError
1.30.0 · 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()
Source§impl PartialEq for ContractError
impl PartialEq for ContractError
impl StructuralPartialEq for ContractError
Auto Trait Implementations§
impl Forget for ContractError
impl Freeze for ContractError
impl Move for ContractError
impl RefUnwindSafe for ContractError
impl Send for ContractErrorwhere
RawVecInner: Send,
impl Sync for ContractErrorwhere
RawVecInner: Sync,
impl Unpin for ContractError
impl UnsafeUnpin for ContractError
impl UnwindSafe for ContractErrorwhere
RawVecInner: UnwindSafe,
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