#[repr(C)]pub struct Compatibility { /* private fields */ }
Implementations§
Source§impl Compatibility
impl Compatibility
pub fn with_plugin_version<StartArgsType: PluginStartArgs, InstanceType: PluginInstance, PluginType: Plugin<StartArgs = StartArgsType, Instance = InstanceType>>() -> Self
pub fn with_empty_plugin_version<StartArgsType: PluginStartArgs, InstanceType: PluginInstance>() -> Self
pub fn plugin_version(&self) -> Option<&'static str>
pub fn plugin_long_version(&self) -> Option<&'static str>
Sourcepub fn compare(&mut self, other: &mut Self) -> bool
pub fn compare(&mut self, other: &mut Self) -> bool
Compares fields if both are Some, otherwise skips the comparison. Returns true if all the comparisons returned true, otherwise false. If comparison passed or skipped, the corresponding field in both structs is set to None. If comparison failed, the corresponding field in both structs is kept as is. This allows not only to check compatibility, but also point to exact reasons of incompatibility.
Trait Implementations§
Source§impl Clone for Compatibility
impl Clone for Compatibility
Source§fn clone(&self) -> Compatibility
fn clone(&self) -> Compatibility
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Compatibility
impl Debug for Compatibility
Source§impl Display for Compatibility
impl Display for Compatibility
Source§impl PartialEq for Compatibility
impl PartialEq for Compatibility
impl Eq for Compatibility
impl StructuralPartialEq for Compatibility
Auto Trait Implementations§
impl Freeze for Compatibility
impl RefUnwindSafe for Compatibility
impl Send for Compatibility
impl Sync for Compatibility
impl Unpin for Compatibility
impl UnwindSafe for Compatibility
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.