pub struct Dialect {
pub id: &'static str,
pub version: u32,
pub parent: Option<&'static str>,
pub ops: &'static [&'static str],
pub validator: fn() -> bool,
pub backends_required: &'static [Backend],
}Expand description
Metadata for a versioned dialect of ops (e.g. pattern, crypto).
Fields§
§id: &'static strStable dialect id (e.g. "primitive", "hash").
version: u32Dialect schema version.
parent: Option<&'static str>Optional parent dialect this one extends.
ops: &'static [&'static str]Op ids this dialect publishes.
validator: fn() -> boolPass/fail predicate run at registration time.
backends_required: &'static [Backend]Backends this dialect requires for conformance claims.
Auto Trait Implementations§
impl Freeze for Dialect
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnsafeUnpin for Dialect
impl UnwindSafe for Dialect
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