pub struct AcceptedGrammar {
pub language_id: String,
pub source: GrammarSourceProvenance,
pub license_record_ids: Vec<String>,
pub abi_export: GrammarAbiExport,
pub fixtures: GrammarFixtures,
pub required_platforms: Vec<PackPlatform>,
pub built_in_precedence: BuiltInParserPrecedence,
pub capability_digest: Blake3Digest,
}Expand description
One accepted non-built-in grammar capability.
Fields§
§language_id: StringCanonical language-registry identity.
source: GrammarSourceProvenanceExact grammar source and compile inputs.
license_record_ids: Vec<String>Sorted non-empty applicable license record identities.
abi_export: GrammarAbiExportABI, export, and library identity.
fixtures: GrammarFixturesExact positive and negative fixtures.
required_platforms: Vec<PackPlatform>Required platforms on which this row must be realized.
built_in_precedence: BuiltInParserPrecedenceDefault-core overlap policy.
capability_digest: Blake3DigestBLAKE3 of this canonical grammar capability row.
Implementations§
Source§impl AcceptedGrammar
impl AcceptedGrammar
Sourcepub fn new(
language_id: impl Into<String>,
source: GrammarSourceProvenance,
license_record_ids: Vec<String>,
abi_export: GrammarAbiExport,
fixtures: GrammarFixtures,
) -> Self
pub fn new( language_id: impl Into<String>, source: GrammarSourceProvenance, license_record_ids: Vec<String>, abi_export: GrammarAbiExport, fixtures: GrammarFixtures, ) -> Self
Construct one row with required platform and precedence policy and seal its digest.
Sourcepub fn computed_capability_digest(&self) -> Blake3Digest
pub fn computed_capability_digest(&self) -> Blake3Digest
Compute the canonical capability digest from every row-owned field.
Trait Implementations§
Source§impl Clone for AcceptedGrammar
impl Clone for AcceptedGrammar
Source§fn clone(&self) -> AcceptedGrammar
fn clone(&self) -> AcceptedGrammar
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 AcceptedGrammar
impl Debug for AcceptedGrammar
Source§impl<'de> Deserialize<'de> for AcceptedGrammar
impl<'de> Deserialize<'de> for AcceptedGrammar
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AcceptedGrammar
impl PartialEq for AcceptedGrammar
Source§impl Serialize for AcceptedGrammar
impl Serialize for AcceptedGrammar
impl Eq for AcceptedGrammar
impl StructuralPartialEq for AcceptedGrammar
Auto Trait Implementations§
impl Freeze for AcceptedGrammar
impl RefUnwindSafe for AcceptedGrammar
impl Send for AcceptedGrammar
impl Sync for AcceptedGrammar
impl Unpin for AcceptedGrammar
impl UnwindSafe for AcceptedGrammar
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.