Skip to main content

ArchivedLicenseIndex

Struct ArchivedLicenseIndex 

Source
#[repr(C)]
pub struct ArchivedLicenseIndex{
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>::Archived

The archived counterpart of LicenseIndex::dictionary

§len_legalese: <usize as Archive>::Archived

The archived counterpart of LicenseIndex::len_legalese

§rid_by_hash: <HashMap<[u8; 20], usize> as Archive>::Archived

The archived counterpart of LicenseIndex::rid_by_hash

§rules_by_rid: <Vec<Rule> as Archive>::Archived

The archived counterpart of LicenseIndex::rules_by_rid

§tids_by_rid: <Vec<Vec<TokenId>> as Archive>::Archived

The archived counterpart of LicenseIndex::tids_by_rid

§rules_automaton: <AsBytes as ArchiveWith<Automaton>>::Archived

The archived counterpart of LicenseIndex::rules_automaton

§unknown_automaton: <AsBytes as ArchiveWith<Automaton>>::Archived

The archived counterpart of LicenseIndex::unknown_automaton

§sets_by_rid: <HashMap<usize, TokenSet> as Archive>::Archived

The archived counterpart of LicenseIndex::sets_by_rid

§rule_metadata_by_identifier: <HashMap<String, IndexedRuleMetadata> as Archive>::Archived

The archived counterpart of LicenseIndex::rule_metadata_by_identifier

§msets_by_rid: <HashMap<usize, TokenMultiset> as Archive>::Archived

The archived counterpart of LicenseIndex::msets_by_rid

§high_sets_by_rid: <HashMap<usize, TokenSet> as Archive>::Archived

The archived counterpart of LicenseIndex::high_sets_by_rid

§high_postings_by_rid: <HashMap<usize, HashMap<TokenId, Vec<usize>>> as Archive>::Archived

The archived counterpart of LicenseIndex::high_postings_by_rid

§false_positive_rids: <HashSet<usize> as Archive>::Archived

The archived counterpart of LicenseIndex::false_positive_rids

§approx_matchable_rids: <HashSet<usize> as Archive>::Archived

The archived counterpart of LicenseIndex::approx_matchable_rids

§licenses_by_key: <HashMap<String, License> as Archive>::Archived

The archived counterpart of LicenseIndex::licenses_by_key

§pattern_id_to_rid: <Vec<Vec<usize>> as Archive>::Archived

The archived counterpart of LicenseIndex::pattern_id_to_rid

§rid_by_spdx_key: <HashMap<String, usize> as Archive>::Archived

The archived counterpart of LicenseIndex::rid_by_spdx_key

§unknown_spdx_rid: <Option<usize> as Archive>::Archived

The archived counterpart of LicenseIndex::unknown_spdx_rid

§rids_by_high_tid: <HashMap<TokenId, HashSet<usize>> as Archive>::Archived

The archived counterpart of LicenseIndex::rids_by_high_tid

§spdx_license_list_version: <Option<String> as Archive>::Archived

The archived counterpart of LicenseIndex::spdx_license_list_version

Trait Implementations§

Source§

impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedLicenseIndex
where 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>,

Source§

unsafe fn check_bytes( value: *const Self, context: &mut __C, ) -> Result<(), <__C as Fallible>::Error>

Checks whether the given pointer points to a valid value within the given context. Read more
Source§

impl Portable for ArchivedLicenseIndex
where 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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
Source§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToAst for T

Source§

fn ast(self, begin: usize, end: usize) -> Spanned<Self>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.