pub struct ApiCompatibilityChecker { /* private fields */ }
Expand description
Runtime API compatibility checker
Implementations§
Source§impl ApiCompatibilityChecker
impl ApiCompatibilityChecker
Sourcepub fn require_api(
self,
apiname: impl Into<String>,
module: impl Into<String>,
) -> Self
pub fn require_api( self, apiname: impl Into<String>, module: impl Into<String>, ) -> Self
Add a required API
Sourcepub fn minimum_version(self, version: Version) -> Self
pub fn minimum_version(self, version: Version) -> Self
Set minimum version requirement
Sourcepub fn check(&self) -> CoreResult<()>
pub fn check(&self) -> CoreResult<()>
Check if all requirements are met
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiCompatibilityChecker
impl RefUnwindSafe for ApiCompatibilityChecker
impl Send for ApiCompatibilityChecker
impl Sync for ApiCompatibilityChecker
impl Unpin for ApiCompatibilityChecker
impl UnwindSafe for ApiCompatibilityChecker
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> 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