#[repr(C)]pub struct ArchivedLicenseIndexwhere
TokenDictionary: Archive,
usize: Archive,
HashMap<[u8; 20], usize>: Archive,
Vec<Rule>: Archive,
Vec<Vec<TokenId>>: Archive,
AsBytes: ArchiveWith<Automaton>,
HashMap<usize, TokenSet>: Archive,
HashMap<String, IndexedRuleMetadata>: Archive,
HashMap<usize, TokenMultiset>: Archive,
HashMap<usize, HashMap<TokenId, Vec<usize>>>: Archive,
HashSet<usize>: Archive,
HashMap<String, License>: Archive,
Vec<Vec<usize>>: Archive,
HashMap<String, usize>: Archive,
Option<usize>: Archive,
HashMap<TokenId, HashSet<usize>>: Archive,
Option<String>: Archive,{Show 20 fields
pub dictionary: <TokenDictionary as Archive>::Archived,
pub len_legalese: <usize as Archive>::Archived,
pub rid_by_hash: <HashMap<[u8; 20], usize> as Archive>::Archived,
pub rules_by_rid: <Vec<Rule> as Archive>::Archived,
pub tids_by_rid: <Vec<Vec<TokenId>> as Archive>::Archived,
pub rules_automaton: <AsBytes as ArchiveWith<Automaton>>::Archived,
pub unknown_automaton: <AsBytes as ArchiveWith<Automaton>>::Archived,
pub sets_by_rid: <HashMap<usize, TokenSet> as Archive>::Archived,
pub rule_metadata_by_identifier: <HashMap<String, IndexedRuleMetadata> as Archive>::Archived,
pub msets_by_rid: <HashMap<usize, TokenMultiset> as Archive>::Archived,
pub high_sets_by_rid: <HashMap<usize, TokenSet> as Archive>::Archived,
pub high_postings_by_rid: <HashMap<usize, HashMap<TokenId, Vec<usize>>> as Archive>::Archived,
pub false_positive_rids: <HashSet<usize> as Archive>::Archived,
pub approx_matchable_rids: <HashSet<usize> as Archive>::Archived,
pub licenses_by_key: <HashMap<String, License> as Archive>::Archived,
pub pattern_id_to_rid: <Vec<Vec<usize>> as Archive>::Archived,
pub rid_by_spdx_key: <HashMap<String, usize> as Archive>::Archived,
pub unknown_spdx_rid: <Option<usize> as Archive>::Archived,
pub rids_by_high_tid: <HashMap<TokenId, HashSet<usize>> as Archive>::Archived,
pub spdx_license_list_version: <Option<String> as Archive>::Archived,
}Expand description
An archived LicenseIndex
Fields§
§dictionary: <TokenDictionary as Archive>::ArchivedThe archived counterpart of LicenseIndex::dictionary
len_legalese: <usize as Archive>::ArchivedThe archived counterpart of LicenseIndex::len_legalese
rid_by_hash: <HashMap<[u8; 20], usize> as Archive>::ArchivedThe archived counterpart of LicenseIndex::rid_by_hash
rules_by_rid: <Vec<Rule> as Archive>::ArchivedThe archived counterpart of LicenseIndex::rules_by_rid
tids_by_rid: <Vec<Vec<TokenId>> as Archive>::ArchivedThe archived counterpart of LicenseIndex::tids_by_rid
rules_automaton: <AsBytes as ArchiveWith<Automaton>>::ArchivedThe archived counterpart of LicenseIndex::rules_automaton
unknown_automaton: <AsBytes as ArchiveWith<Automaton>>::ArchivedThe archived counterpart of LicenseIndex::unknown_automaton
sets_by_rid: <HashMap<usize, TokenSet> as Archive>::ArchivedThe archived counterpart of LicenseIndex::sets_by_rid
rule_metadata_by_identifier: <HashMap<String, IndexedRuleMetadata> as Archive>::ArchivedThe archived counterpart of LicenseIndex::rule_metadata_by_identifier
msets_by_rid: <HashMap<usize, TokenMultiset> as Archive>::ArchivedThe archived counterpart of LicenseIndex::msets_by_rid
high_sets_by_rid: <HashMap<usize, TokenSet> as Archive>::ArchivedThe archived counterpart of LicenseIndex::high_sets_by_rid
high_postings_by_rid: <HashMap<usize, HashMap<TokenId, Vec<usize>>> as Archive>::ArchivedThe archived counterpart of LicenseIndex::high_postings_by_rid
false_positive_rids: <HashSet<usize> as Archive>::ArchivedThe archived counterpart of LicenseIndex::false_positive_rids
approx_matchable_rids: <HashSet<usize> as Archive>::ArchivedThe archived counterpart of LicenseIndex::approx_matchable_rids
licenses_by_key: <HashMap<String, License> as Archive>::ArchivedThe archived counterpart of LicenseIndex::licenses_by_key
pattern_id_to_rid: <Vec<Vec<usize>> as Archive>::ArchivedThe archived counterpart of LicenseIndex::pattern_id_to_rid
rid_by_spdx_key: <HashMap<String, usize> as Archive>::ArchivedThe archived counterpart of LicenseIndex::rid_by_spdx_key
unknown_spdx_rid: <Option<usize> as Archive>::ArchivedThe archived counterpart of LicenseIndex::unknown_spdx_rid
rids_by_high_tid: <HashMap<TokenId, HashSet<usize>> as Archive>::ArchivedThe archived counterpart of LicenseIndex::rids_by_high_tid
spdx_license_list_version: <Option<String> as Archive>::ArchivedThe archived counterpart of LicenseIndex::spdx_license_list_version
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedLicenseIndexwhere
TokenDictionary: Archive,
usize: Archive,
HashMap<[u8; 20], usize>: Archive,
Vec<Rule>: Archive,
Vec<Vec<TokenId>>: Archive,
AsBytes: ArchiveWith<Automaton>,
HashMap<usize, TokenSet>: Archive,
HashMap<String, IndexedRuleMetadata>: Archive,
HashMap<usize, TokenMultiset>: Archive,
HashMap<usize, HashMap<TokenId, Vec<usize>>>: Archive,
HashSet<usize>: Archive,
HashMap<String, License>: Archive,
Vec<Vec<usize>>: Archive,
HashMap<String, usize>: Archive,
Option<usize>: Archive,
HashMap<TokenId, HashSet<usize>>: Archive,
Option<String>: Archive,
<__C as Fallible>::Error: Trace,
<TokenDictionary as Archive>::Archived: CheckBytes<__C>,
<usize as Archive>::Archived: CheckBytes<__C>,
<HashMap<[u8; 20], usize> as Archive>::Archived: CheckBytes<__C>,
<Vec<Rule> as Archive>::Archived: CheckBytes<__C>,
<Vec<Vec<TokenId>> as Archive>::Archived: CheckBytes<__C>,
<AsBytes as ArchiveWith<Automaton>>::Archived: CheckBytes<__C>,
<HashMap<usize, TokenSet> as Archive>::Archived: CheckBytes<__C>,
<HashMap<String, IndexedRuleMetadata> as Archive>::Archived: CheckBytes<__C>,
<HashMap<usize, TokenMultiset> as Archive>::Archived: CheckBytes<__C>,
<HashMap<usize, HashMap<TokenId, Vec<usize>>> as Archive>::Archived: CheckBytes<__C>,
<HashSet<usize> as Archive>::Archived: CheckBytes<__C>,
<HashMap<String, License> as Archive>::Archived: CheckBytes<__C>,
<Vec<Vec<usize>> as Archive>::Archived: CheckBytes<__C>,
<HashMap<String, usize> as Archive>::Archived: CheckBytes<__C>,
<Option<usize> as Archive>::Archived: CheckBytes<__C>,
<HashMap<TokenId, HashSet<usize>> as Archive>::Archived: CheckBytes<__C>,
<Option<String> as Archive>::Archived: CheckBytes<__C>,
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedLicenseIndexwhere
TokenDictionary: Archive,
usize: Archive,
HashMap<[u8; 20], usize>: Archive,
Vec<Rule>: Archive,
Vec<Vec<TokenId>>: Archive,
AsBytes: ArchiveWith<Automaton>,
HashMap<usize, TokenSet>: Archive,
HashMap<String, IndexedRuleMetadata>: Archive,
HashMap<usize, TokenMultiset>: Archive,
HashMap<usize, HashMap<TokenId, Vec<usize>>>: Archive,
HashSet<usize>: Archive,
HashMap<String, License>: Archive,
Vec<Vec<usize>>: Archive,
HashMap<String, usize>: Archive,
Option<usize>: Archive,
HashMap<TokenId, HashSet<usize>>: Archive,
Option<String>: Archive,
<__C as Fallible>::Error: Trace,
<TokenDictionary as Archive>::Archived: CheckBytes<__C>,
<usize as Archive>::Archived: CheckBytes<__C>,
<HashMap<[u8; 20], usize> as Archive>::Archived: CheckBytes<__C>,
<Vec<Rule> as Archive>::Archived: CheckBytes<__C>,
<Vec<Vec<TokenId>> as Archive>::Archived: CheckBytes<__C>,
<AsBytes as ArchiveWith<Automaton>>::Archived: CheckBytes<__C>,
<HashMap<usize, TokenSet> as Archive>::Archived: CheckBytes<__C>,
<HashMap<String, IndexedRuleMetadata> as Archive>::Archived: CheckBytes<__C>,
<HashMap<usize, TokenMultiset> as Archive>::Archived: CheckBytes<__C>,
<HashMap<usize, HashMap<TokenId, Vec<usize>>> as Archive>::Archived: CheckBytes<__C>,
<HashSet<usize> as Archive>::Archived: CheckBytes<__C>,
<HashMap<String, License> as Archive>::Archived: CheckBytes<__C>,
<Vec<Vec<usize>> as Archive>::Archived: CheckBytes<__C>,
<HashMap<String, usize> as Archive>::Archived: CheckBytes<__C>,
<Option<usize> as Archive>::Archived: CheckBytes<__C>,
<HashMap<TokenId, HashSet<usize>> as Archive>::Archived: CheckBytes<__C>,
<Option<String> as Archive>::Archived: CheckBytes<__C>,
impl Portable for ArchivedLicenseIndexwhere
TokenDictionary: Archive,
usize: Archive,
HashMap<[u8; 20], usize>: Archive,
Vec<Rule>: Archive,
Vec<Vec<TokenId>>: Archive,
AsBytes: ArchiveWith<Automaton>,
HashMap<usize, TokenSet>: Archive,
HashMap<String, IndexedRuleMetadata>: Archive,
HashMap<usize, TokenMultiset>: Archive,
HashMap<usize, HashMap<TokenId, Vec<usize>>>: Archive,
HashSet<usize>: Archive,
HashMap<String, License>: Archive,
Vec<Vec<usize>>: Archive,
HashMap<String, usize>: Archive,
Option<usize>: Archive,
HashMap<TokenId, HashSet<usize>>: Archive,
Option<String>: Archive,
<TokenDictionary as Archive>::Archived: Portable,
<usize as Archive>::Archived: Portable,
<HashMap<[u8; 20], usize> as Archive>::Archived: Portable,
<Vec<Rule> as Archive>::Archived: Portable,
<Vec<Vec<TokenId>> as Archive>::Archived: Portable,
<AsBytes as ArchiveWith<Automaton>>::Archived: Portable,
<HashMap<usize, TokenSet> as Archive>::Archived: Portable,
<HashMap<String, IndexedRuleMetadata> as Archive>::Archived: Portable,
<HashMap<usize, TokenMultiset> as Archive>::Archived: Portable,
<HashMap<usize, HashMap<TokenId, Vec<usize>>> as Archive>::Archived: Portable,
<HashSet<usize> as Archive>::Archived: Portable,
<HashMap<String, License> as Archive>::Archived: Portable,
<Vec<Vec<usize>> as Archive>::Archived: Portable,
<HashMap<String, usize> as Archive>::Archived: Portable,
<Option<usize> as Archive>::Archived: Portable,
<HashMap<TokenId, HashSet<usize>> as Archive>::Archived: Portable,
<Option<String> as Archive>::Archived: Portable,
Auto Trait Implementations§
impl Freeze for ArchivedLicenseIndex
impl RefUnwindSafe for ArchivedLicenseIndex
impl Send for ArchivedLicenseIndex
impl Sync for ArchivedLicenseIndex
impl !Unpin for ArchivedLicenseIndex
impl !UnsafeUnpin for ArchivedLicenseIndex
impl UnwindSafe for ArchivedLicenseIndex
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
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>
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>
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.