pub struct TestPlatformGuard<'w> { /* private fields */ }Expand description
A conservative necessary guard borrowed from a test’s retained source facts.
A false result proves platform exclusion. Other results never establish that Cargo lists or runs the test. Ambiguous declaration/path ancestry is unknown.
Implementations§
Source§impl TestPlatformGuard<'_>
impl TestPlatformGuard<'_>
Sourcepub fn has_platform_condition(&self) -> bool
pub fn has_platform_condition(&self) -> bool
Whether an effective guard mentions a supported OS/family condition.
Sourcepub fn evaluate(&self, platform: &CompilerPlatform) -> Option<bool>
pub fn evaluate(&self, platform: &CompilerPlatform) -> Option<bool>
Evaluate only OS/family atoms against the caller’s actual target facts.
Features, custom predicates and test remain unknown. This prevents a
nonplatform false condition from becoming a platform-skip certificate.
Trait Implementations§
Source§impl<'w> Debug for TestPlatformGuard<'w>
impl<'w> Debug for TestPlatformGuard<'w>
Auto Trait Implementations§
impl<'w> Forget for TestPlatformGuard<'w>
impl<'w> Freeze for TestPlatformGuard<'w>
impl<'w> Move for TestPlatformGuard<'w>
impl<'w> RefUnwindSafe for TestPlatformGuard<'w>
impl<'w> Send for TestPlatformGuard<'w>
impl<'w> Sync for TestPlatformGuard<'w>
impl<'w> Unpin for TestPlatformGuard<'w>
impl<'w> UnsafeUnpin for TestPlatformGuard<'w>
impl<'w> UnwindSafe for TestPlatformGuard<'w>
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
impl<T> EvidenceLease for T
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