pub trait RulesText:
Clone
+ Debug
+ PartialEq
+ Serialize
+ DeserializeOwned
+ Send
+ Sync
+ 'static {
const KIND: &'static str;
const ONE: &'static str;
// Required methods
fn name(&self) -> &str;
fn source(&self) -> &str;
fn edition(&self) -> Option<Edition>;
fn validate(&self) -> Result<(), RulesTextError>;
}Expand description
Something kept as rules text: what it’s called and where it’s from.
Required Associated Constants§
Required Methods§
Sourcefn validate(&self) -> Result<(), RulesTextError>
fn validate(&self) -> Result<(), RulesTextError>
Checks it can be kept.
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.