pub enum MarkupInvokeError {
ArgumentCount {
expected: usize,
actual: usize,
},
Argument {
index: usize,
expected: &'static str,
actual: String,
},
Failed(String),
}Expand description
Why an untyped member could not be invoked.
Variants§
ArgumentCount
The member was called with the wrong number of arguments (including the instance).
Argument
An argument is not assignable to the declared parameter type.
Failed(String)
The member itself failed (the equivalent of an exception thrown by the member, for example a parse error).
Trait Implementations§
Source§impl Clone for MarkupInvokeError
impl Clone for MarkupInvokeError
Source§impl Debug for MarkupInvokeError
impl Debug for MarkupInvokeError
Source§impl Display for MarkupInvokeError
impl Display for MarkupInvokeError
Source§impl Error for MarkupInvokeError
impl Error for MarkupInvokeError
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 MarkupInvokeError
impl PartialEq for MarkupInvokeError
impl StructuralPartialEq for MarkupInvokeError
Auto Trait Implementations§
impl Freeze for MarkupInvokeError
impl RefUnwindSafe for MarkupInvokeError
impl Send for MarkupInvokeError
impl Sync for MarkupInvokeError
impl Unpin for MarkupInvokeError
impl UnsafeUnpin for MarkupInvokeError
impl UnwindSafe for MarkupInvokeError
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more