pub enum OptionalParserCapability {
Pack {
platform: PackPlatform,
},
BuiltInOnly,
}Expand description
Closed runtime capability for the optional parser-pack boundary.
Variants§
Pack
The current tuple has an accepted pack and containment adapter.
Fields
§
platform: PackPlatformAccepted native target for the optional parser pack.
BuiltInOnly
The tuple has no optional pack, while built-in parsing remains available.
Implementations§
Source§impl OptionalParserCapability
impl OptionalParserCapability
Sourcepub fn for_target(os: &str, architecture: &str) -> Self
pub fn for_target(os: &str, architecture: &str) -> Self
Resolve one host tuple through the closed optional-parser authority.
Sourcepub const fn pack_platform(self) -> Option<PackPlatform>
pub const fn pack_platform(self) -> Option<PackPlatform>
Return the accepted pack target, or None for built-in-only hosts.
Sourcepub const fn built_in_parsing_available(self) -> bool
pub const fn built_in_parsing_available(self) -> bool
Return whether built-in parser coverage remains available.
Trait Implementations§
Source§impl Clone for OptionalParserCapability
impl Clone for OptionalParserCapability
Source§fn clone(&self) -> OptionalParserCapability
fn clone(&self) -> OptionalParserCapability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OptionalParserCapability
Source§impl Debug for OptionalParserCapability
impl Debug for OptionalParserCapability
impl Eq for OptionalParserCapability
Source§impl PartialEq for OptionalParserCapability
impl PartialEq for OptionalParserCapability
Source§fn eq(&self, other: &OptionalParserCapability) -> bool
fn eq(&self, other: &OptionalParserCapability) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OptionalParserCapability
impl Serialize for OptionalParserCapability
impl StructuralPartialEq for OptionalParserCapability
Auto Trait Implementations§
impl Freeze for OptionalParserCapability
impl RefUnwindSafe for OptionalParserCapability
impl Send for OptionalParserCapability
impl Sync for OptionalParserCapability
impl Unpin for OptionalParserCapability
impl UnsafeUnpin for OptionalParserCapability
impl UnwindSafe for OptionalParserCapability
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.