Skip to main content

PatchInterface

Trait PatchInterface 

Source
pub trait PatchInterface: Send + Sync {
    // Required methods
    fn metadata(&self) -> &PatchMetadata;
    fn type_layout(&self) -> TypeLayout;
}
Expand description

Trait for patchable interfaces

Required Methods§

Source

fn metadata(&self) -> &PatchMetadata

Get metadata about this patch

Source

fn type_layout(&self) -> TypeLayout

Get the type layout for validation

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§