pub struct Validator { /* private fields */ }Expand description
Validator for patch compatibility
Implementations§
Source§impl Validator
impl Validator
pub fn new(expected_interface_version: Version, expected_type_hash: u64) -> Self
pub fn with_config(self, config: ValidationConfig) -> Self
Sourcepub fn validate_layout(
&self,
expected: &TypeLayout,
found: &TypeLayout,
) -> Result<()>
pub fn validate_layout( &self, expected: &TypeLayout, found: &TypeLayout, ) -> Result<()>
Validate type layout compatibility
Auto Trait Implementations§
impl Freeze for Validator
impl RefUnwindSafe for Validator
impl Send for Validator
impl Sync for Validator
impl Unpin for Validator
impl UnwindSafe for Validator
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