pub trait ValidityCondition:
Serialize
+ DeserializeOwned
+ BorshDeserialize
+ BorshSerialize
+ Debug
+ Clone
+ Copy
+ PartialEq
+ Send
+ Sync
+ Eq {
type Error: Into<Error>;
// Required method
fn combine<H: Digest>(&self, rhs: Self) -> Result<Self, Self::Error>;
}
Expand description
This trait is implemented on the struct/enum which expresses the validity condition
Required Associated Types§
Sourcetype Error: Into<Error>
type Error: Into<Error>
The error type returned when two ValidityCondition
s cannot be combined.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.