pub enum Divergence {
MissingFromInclude {
native: String,
},
NotRegistered {
native: String,
},
Arity {
native: String,
include: usize,
plugin: usize,
},
ReturnTag {
native: String,
include: String,
plugin: String,
},
CallbackNotForwarded {
callback: String,
},
Template {
problem: String,
},
ArgumentShape {
native: String,
position: usize,
include: Argument,
plugin: Argument,
},
}Expand description
Something the include and the plugin disagree about.
Variants§
MissingFromInclude
Registered by the plugin, absent from the include — a script calling it will not compile.
NotRegistered
Declared in the include, not registered — a script calling it compiles and fails at runtime.
Arity
Both sides have it, with a different number of arguments.
ReturnTag
Both sides have it, with a different return tag.
CallbackNotForwarded
A callback the plugin calls that the include does not forward: a script
implementing it as public would not be called.
Template
The include is a template that does not render — checked here because a template that cannot be rendered cannot be compared either.
ArgumentShape
One argument is declared differently: a tag, a &, or a [].
Trait Implementations§
Source§impl Clone for Divergence
impl Clone for Divergence
Source§impl Debug for Divergence
impl Debug for Divergence
Source§impl Display for Divergence
impl Display for Divergence
impl Eq for Divergence
Source§impl PartialEq for Divergence
impl PartialEq for Divergence
impl StructuralPartialEq for Divergence
Auto Trait Implementations§
impl Freeze for Divergence
impl RefUnwindSafe for Divergence
impl Send for Divergence
impl Sync for Divergence
impl Unpin for Divergence
impl UnsafeUnpin for Divergence
impl UnwindSafe for Divergence
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