#[repr(C)]pub struct ArchivedRulewhere
String: Archive,
Vec<TokenId>: Archive,
RuleKind: Archive,
bool: Archive,
u8: Archive,
Option<u8>: Archive,
Vec<Range<usize>>: Archive,
HashMap<Option<usize>, usize>: Archive,
Option<Vec<String>>: Archive,
Option<String>: Archive,
usize: Archive,
Vec<String>: Archive,{Show 36 fields
pub identifier: <String as Archive>::Archived,
pub license_expression: <String as Archive>::Archived,
pub text: <String as Archive>::Archived,
pub tokens: <Vec<TokenId> as Archive>::Archived,
pub rule_kind: <RuleKind as Archive>::Archived,
pub is_false_positive: <bool as Archive>::Archived,
pub is_required_phrase: <bool as Archive>::Archived,
pub is_from_license: <bool as Archive>::Archived,
pub relevance: <u8 as Archive>::Archived,
pub minimum_coverage: <Option<u8> as Archive>::Archived,
pub has_stored_minimum_coverage: <bool as Archive>::Archived,
pub is_continuous: <bool as Archive>::Archived,
pub required_phrase_spans: <Vec<Range<usize>> as Archive>::Archived,
pub stopwords_by_pos: <HashMap<Option<usize>, usize> as Archive>::Archived,
pub referenced_filenames: <Option<Vec<String>> as Archive>::Archived,
pub ignorable_urls: <Option<Vec<String>> as Archive>::Archived,
pub ignorable_emails: <Option<Vec<String>> as Archive>::Archived,
pub ignorable_copyrights: <Option<Vec<String>> as Archive>::Archived,
pub ignorable_holders: <Option<Vec<String>> as Archive>::Archived,
pub ignorable_authors: <Option<Vec<String>> as Archive>::Archived,
pub language: <Option<String> as Archive>::Archived,
pub notes: <Option<String> as Archive>::Archived,
pub length_unique: <usize as Archive>::Archived,
pub high_length_unique: <usize as Archive>::Archived,
pub high_length: <usize as Archive>::Archived,
pub min_matched_length: <usize as Archive>::Archived,
pub min_high_matched_length: <usize as Archive>::Archived,
pub min_matched_length_unique: <usize as Archive>::Archived,
pub min_high_matched_length_unique: <usize as Archive>::Archived,
pub is_small: <bool as Archive>::Archived,
pub is_tiny: <bool as Archive>::Archived,
pub starts_with_license: <bool as Archive>::Archived,
pub ends_with_license: <bool as Archive>::Archived,
pub is_deprecated: <bool as Archive>::Archived,
pub spdx_license_key: <Option<String> as Archive>::Archived,
pub other_spdx_license_keys: <Vec<String> as Archive>::Archived,
}Expand description
An archived Rule
Fields§
§identifier: <String as Archive>::ArchivedThe archived counterpart of Rule::identifier
license_expression: <String as Archive>::ArchivedThe archived counterpart of Rule::license_expression
text: <String as Archive>::ArchivedThe archived counterpart of Rule::text
tokens: <Vec<TokenId> as Archive>::ArchivedThe archived counterpart of Rule::tokens
rule_kind: <RuleKind as Archive>::ArchivedThe archived counterpart of Rule::rule_kind
is_false_positive: <bool as Archive>::ArchivedThe archived counterpart of Rule::is_false_positive
is_required_phrase: <bool as Archive>::ArchivedThe archived counterpart of Rule::is_required_phrase
is_from_license: <bool as Archive>::ArchivedThe archived counterpart of Rule::is_from_license
relevance: <u8 as Archive>::ArchivedThe archived counterpart of Rule::relevance
minimum_coverage: <Option<u8> as Archive>::ArchivedThe archived counterpart of Rule::minimum_coverage
has_stored_minimum_coverage: <bool as Archive>::ArchivedThe archived counterpart of Rule::has_stored_minimum_coverage
is_continuous: <bool as Archive>::ArchivedThe archived counterpart of Rule::is_continuous
required_phrase_spans: <Vec<Range<usize>> as Archive>::ArchivedThe archived counterpart of Rule::required_phrase_spans
stopwords_by_pos: <HashMap<Option<usize>, usize> as Archive>::ArchivedThe archived counterpart of Rule::stopwords_by_pos
referenced_filenames: <Option<Vec<String>> as Archive>::ArchivedThe archived counterpart of Rule::referenced_filenames
ignorable_urls: <Option<Vec<String>> as Archive>::ArchivedThe archived counterpart of Rule::ignorable_urls
ignorable_emails: <Option<Vec<String>> as Archive>::ArchivedThe archived counterpart of Rule::ignorable_emails
ignorable_copyrights: <Option<Vec<String>> as Archive>::ArchivedThe archived counterpart of Rule::ignorable_copyrights
ignorable_holders: <Option<Vec<String>> as Archive>::ArchivedThe archived counterpart of Rule::ignorable_holders
The archived counterpart of Rule::ignorable_authors
language: <Option<String> as Archive>::ArchivedThe archived counterpart of Rule::language
notes: <Option<String> as Archive>::ArchivedThe archived counterpart of Rule::notes
length_unique: <usize as Archive>::ArchivedThe archived counterpart of Rule::length_unique
high_length_unique: <usize as Archive>::ArchivedThe archived counterpart of Rule::high_length_unique
high_length: <usize as Archive>::ArchivedThe archived counterpart of Rule::high_length
min_matched_length: <usize as Archive>::ArchivedThe archived counterpart of Rule::min_matched_length
min_high_matched_length: <usize as Archive>::ArchivedThe archived counterpart of Rule::min_high_matched_length
min_matched_length_unique: <usize as Archive>::ArchivedThe archived counterpart of Rule::min_matched_length_unique
min_high_matched_length_unique: <usize as Archive>::ArchivedThe archived counterpart of Rule::min_high_matched_length_unique
is_small: <bool as Archive>::ArchivedThe archived counterpart of Rule::is_small
is_tiny: <bool as Archive>::ArchivedThe archived counterpart of Rule::is_tiny
starts_with_license: <bool as Archive>::ArchivedThe archived counterpart of Rule::starts_with_license
ends_with_license: <bool as Archive>::ArchivedThe archived counterpart of Rule::ends_with_license
is_deprecated: <bool as Archive>::ArchivedThe archived counterpart of Rule::is_deprecated
spdx_license_key: <Option<String> as Archive>::ArchivedThe archived counterpart of Rule::spdx_license_key
other_spdx_license_keys: <Vec<String> as Archive>::ArchivedThe archived counterpart of Rule::other_spdx_license_keys
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedRulewhere
String: Archive,
Vec<TokenId>: Archive,
RuleKind: Archive,
bool: Archive,
u8: Archive,
Option<u8>: Archive,
Vec<Range<usize>>: Archive,
HashMap<Option<usize>, usize>: Archive,
Option<Vec<String>>: Archive,
Option<String>: Archive,
usize: Archive,
Vec<String>: Archive,
<__C as Fallible>::Error: Trace,
<String as Archive>::Archived: CheckBytes<__C>,
<Vec<TokenId> as Archive>::Archived: CheckBytes<__C>,
<RuleKind as Archive>::Archived: CheckBytes<__C>,
<bool as Archive>::Archived: CheckBytes<__C>,
<u8 as Archive>::Archived: CheckBytes<__C>,
<Option<u8> as Archive>::Archived: CheckBytes<__C>,
<Vec<Range<usize>> as Archive>::Archived: CheckBytes<__C>,
<HashMap<Option<usize>, usize> as Archive>::Archived: CheckBytes<__C>,
<Option<Vec<String>> as Archive>::Archived: CheckBytes<__C>,
<Option<String> as Archive>::Archived: CheckBytes<__C>,
<usize as Archive>::Archived: CheckBytes<__C>,
<Vec<String> as Archive>::Archived: CheckBytes<__C>,
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedRulewhere
String: Archive,
Vec<TokenId>: Archive,
RuleKind: Archive,
bool: Archive,
u8: Archive,
Option<u8>: Archive,
Vec<Range<usize>>: Archive,
HashMap<Option<usize>, usize>: Archive,
Option<Vec<String>>: Archive,
Option<String>: Archive,
usize: Archive,
Vec<String>: Archive,
<__C as Fallible>::Error: Trace,
<String as Archive>::Archived: CheckBytes<__C>,
<Vec<TokenId> as Archive>::Archived: CheckBytes<__C>,
<RuleKind as Archive>::Archived: CheckBytes<__C>,
<bool as Archive>::Archived: CheckBytes<__C>,
<u8 as Archive>::Archived: CheckBytes<__C>,
<Option<u8> as Archive>::Archived: CheckBytes<__C>,
<Vec<Range<usize>> as Archive>::Archived: CheckBytes<__C>,
<HashMap<Option<usize>, usize> as Archive>::Archived: CheckBytes<__C>,
<Option<Vec<String>> as Archive>::Archived: CheckBytes<__C>,
<Option<String> as Archive>::Archived: CheckBytes<__C>,
<usize as Archive>::Archived: CheckBytes<__C>,
<Vec<String> as Archive>::Archived: CheckBytes<__C>,
impl Portable for ArchivedRulewhere
String: Archive,
Vec<TokenId>: Archive,
RuleKind: Archive,
bool: Archive,
u8: Archive,
Option<u8>: Archive,
Vec<Range<usize>>: Archive,
HashMap<Option<usize>, usize>: Archive,
Option<Vec<String>>: Archive,
Option<String>: Archive,
usize: Archive,
Vec<String>: Archive,
<String as Archive>::Archived: Portable,
<Vec<TokenId> as Archive>::Archived: Portable,
<RuleKind as Archive>::Archived: Portable,
<bool as Archive>::Archived: Portable,
<u8 as Archive>::Archived: Portable,
<Option<u8> as Archive>::Archived: Portable,
<Vec<Range<usize>> as Archive>::Archived: Portable,
<HashMap<Option<usize>, usize> as Archive>::Archived: Portable,
<Option<Vec<String>> as Archive>::Archived: Portable,
<Option<String> as Archive>::Archived: Portable,
<usize as Archive>::Archived: Portable,
<Vec<String> as Archive>::Archived: Portable,
Auto Trait Implementations§
impl Freeze for ArchivedRule
impl RefUnwindSafe for ArchivedRule
impl Send for ArchivedRule
impl Sync for ArchivedRule
impl !Unpin for ArchivedRule
impl !UnsafeUnpin for ArchivedRule
impl UnwindSafe for ArchivedRule
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.