pub enum CompatibilityRule {
SemVerRule,
BreakingChangeRule,
FeatureRemovalRule,
ApiSignatureRule,
BehaviorChangeRule,
}
Expand description
Built-in compatibility rules
Variants§
SemVerRule
Semantic versioning rule
BreakingChangeRule
Breaking change detection rule
FeatureRemovalRule
Feature removal rule
ApiSignatureRule
API signature change rule
BehaviorChangeRule
Behavior change rule
Trait Implementations§
Source§impl Clone for CompatibilityRule
impl Clone for CompatibilityRule
Source§fn clone(&self) -> CompatibilityRule
fn clone(&self) -> CompatibilityRule
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 CompatibilityRuleTrait for CompatibilityRule
impl CompatibilityRuleTrait for CompatibilityRule
Source§fn apply(
&self,
from_api: &ApiVersion,
to_api: &ApiVersion,
report: &mut CompatibilityReport,
) -> Result<(), CoreError>
fn apply( &self, from_api: &ApiVersion, to_api: &ApiVersion, report: &mut CompatibilityReport, ) -> Result<(), CoreError>
Apply the rule to generate compatibility issues
Auto Trait Implementations§
impl Freeze for CompatibilityRule
impl RefUnwindSafe for CompatibilityRule
impl Send for CompatibilityRule
impl Sync for CompatibilityRule
impl Unpin for CompatibilityRule
impl UnwindSafe for CompatibilityRule
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more