pub enum FunctionCallError {
InvalidFunctionCall {
function_name: String,
source_span: SourceSpan,
message: String,
},
TypeMisMatch {
function_name: String,
argument_source_span: SourceSpan,
error: TypeMismatchError,
},
MissingRecordFields {
function_name: String,
argument_source_span: SourceSpan,
missing_fields: Vec<Path>,
},
UnResolvedTypes {
function_name: String,
source_span: SourceSpan,
unresolved_error: UnResolvedTypesError,
expected_type: WitType,
},
InvalidResourceMethodCall {
resource_method_name: String,
invalid_lhs_source_span: SourceSpan,
},
ArgumentSizeMisMatch {
function_name: String,
source_span: SourceSpan,
expected: usize,
provided: usize,
},
}Variants§
InvalidFunctionCall
TypeMisMatch
MissingRecordFields
UnResolvedTypes
InvalidResourceMethodCall
ArgumentSizeMisMatch
Implementations§
Source§impl FunctionCallError
impl FunctionCallError
pub fn invalid_function_call( function_name: &str, function_source_span: SourceSpan, message: impl AsRef<str>, ) -> FunctionCallError
Trait Implementations§
Source§impl Clone for FunctionCallError
impl Clone for FunctionCallError
Source§fn clone(&self) -> FunctionCallError
fn clone(&self) -> FunctionCallError
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for FunctionCallError
impl RefUnwindSafe for FunctionCallError
impl Send for FunctionCallError
impl Sync for FunctionCallError
impl Unpin for FunctionCallError
impl UnsafeUnpin for FunctionCallError
impl UnwindSafe for FunctionCallError
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