pub struct CompatibilityChecker { /* private fields */ }Expand description
Checks binary compatibility between two OleanC files.
Implementations§
Source§impl CompatibilityChecker
impl CompatibilityChecker
Sourcepub fn new(known_versions: Vec<u32>) -> Self
pub fn new(known_versions: Vec<u32>) -> Self
Create a checker that knows about the given versions.
Sourcepub fn is_compatible(&self, version: u32) -> bool
pub fn is_compatible(&self, version: u32) -> bool
Return whether the version is known-compatible.
Sourcepub fn needs_upgrade(&self, old: u32, new: u32) -> bool
pub fn needs_upgrade(&self, old: u32, new: u32) -> bool
Return whether an upgrade is needed from old to new.
Auto Trait Implementations§
impl Freeze for CompatibilityChecker
impl RefUnwindSafe for CompatibilityChecker
impl Send for CompatibilityChecker
impl Sync for CompatibilityChecker
impl Unpin for CompatibilityChecker
impl UnsafeUnpin for CompatibilityChecker
impl UnwindSafe for CompatibilityChecker
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