#[repr(C)]pub struct ArchivedMetadatawhere
u32: Archive,
String: Archive,
i16: Archive,
u16: Archive,
bool: Archive,
Option<ContextIdMap>: Archive,
Schema: Archive,
Option<ModelInfo>: Archive,{Show 15 fields
pub format_version: <u32 as Archive>::Archived,
pub name: <String as Archive>::Archived,
pub encoding: <String as Archive>::Archived,
pub default_word_cost: <i16 as Archive>::Archived,
pub default_left_context_id: <u16 as Archive>::Archived,
pub default_right_context_id: <u16 as Archive>::Archived,
pub default_field_value: <String as Archive>::Archived,
pub flexible_csv: <bool as Archive>::Archived,
pub skip_invalid_cost_or_id: <bool as Archive>::Archived,
pub normalize_details: <bool as Archive>::Archived,
pub connection_id_mapping: <bool as Archive>::Archived,
pub context_id_map: <Option<ContextIdMap> as Archive>::Archived,
pub dictionary_schema: <Schema as Archive>::Archived,
pub user_dictionary_schema: <Schema as Archive>::Archived,
pub model_info: <Option<ModelInfo> as Archive>::Archived,
}Expand description
An archived Metadata
Fields§
§format_version: <u32 as Archive>::ArchivedThe archived counterpart of Metadata::format_version
name: <String as Archive>::ArchivedThe archived counterpart of Metadata::name
encoding: <String as Archive>::ArchivedThe archived counterpart of Metadata::encoding
default_word_cost: <i16 as Archive>::ArchivedThe archived counterpart of Metadata::default_word_cost
default_left_context_id: <u16 as Archive>::ArchivedThe archived counterpart of Metadata::default_left_context_id
default_right_context_id: <u16 as Archive>::ArchivedThe archived counterpart of Metadata::default_right_context_id
default_field_value: <String as Archive>::ArchivedThe archived counterpart of Metadata::default_field_value
flexible_csv: <bool as Archive>::ArchivedThe archived counterpart of Metadata::flexible_csv
skip_invalid_cost_or_id: <bool as Archive>::ArchivedThe archived counterpart of Metadata::skip_invalid_cost_or_id
normalize_details: <bool as Archive>::ArchivedThe archived counterpart of Metadata::normalize_details
connection_id_mapping: <bool as Archive>::ArchivedThe archived counterpart of Metadata::connection_id_mapping
context_id_map: <Option<ContextIdMap> as Archive>::ArchivedThe archived counterpart of Metadata::context_id_map
dictionary_schema: <Schema as Archive>::ArchivedThe archived counterpart of Metadata::dictionary_schema
user_dictionary_schema: <Schema as Archive>::ArchivedThe archived counterpart of Metadata::user_dictionary_schema
model_info: <Option<ModelInfo> as Archive>::ArchivedThe archived counterpart of Metadata::model_info
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedMetadatawhere
u32: Archive,
String: Archive,
i16: Archive,
u16: Archive,
bool: Archive,
Option<ContextIdMap>: Archive,
Schema: Archive,
Option<ModelInfo>: Archive,
<__C as Fallible>::Error: Trace,
<u32 as Archive>::Archived: CheckBytes<__C>,
<String as Archive>::Archived: CheckBytes<__C>,
<i16 as Archive>::Archived: CheckBytes<__C>,
<u16 as Archive>::Archived: CheckBytes<__C>,
<bool as Archive>::Archived: CheckBytes<__C>,
<Option<ContextIdMap> as Archive>::Archived: CheckBytes<__C>,
<Schema as Archive>::Archived: CheckBytes<__C>,
<Option<ModelInfo> as Archive>::Archived: CheckBytes<__C>,
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedMetadatawhere
u32: Archive,
String: Archive,
i16: Archive,
u16: Archive,
bool: Archive,
Option<ContextIdMap>: Archive,
Schema: Archive,
Option<ModelInfo>: Archive,
<__C as Fallible>::Error: Trace,
<u32 as Archive>::Archived: CheckBytes<__C>,
<String as Archive>::Archived: CheckBytes<__C>,
<i16 as Archive>::Archived: CheckBytes<__C>,
<u16 as Archive>::Archived: CheckBytes<__C>,
<bool as Archive>::Archived: CheckBytes<__C>,
<Option<ContextIdMap> as Archive>::Archived: CheckBytes<__C>,
<Schema as Archive>::Archived: CheckBytes<__C>,
<Option<ModelInfo> as Archive>::Archived: CheckBytes<__C>,
impl Portable for ArchivedMetadatawhere
u32: Archive,
String: Archive,
i16: Archive,
u16: Archive,
bool: Archive,
Option<ContextIdMap>: Archive,
Schema: Archive,
Option<ModelInfo>: Archive,
<u32 as Archive>::Archived: Portable,
<String as Archive>::Archived: Portable,
<i16 as Archive>::Archived: Portable,
<u16 as Archive>::Archived: Portable,
<bool as Archive>::Archived: Portable,
<Option<ContextIdMap> as Archive>::Archived: Portable,
<Schema as Archive>::Archived: Portable,
<Option<ModelInfo> as Archive>::Archived: Portable,
Auto Trait Implementations§
impl !Unpin for ArchivedMetadata
impl !UnsafeUnpin for ArchivedMetadata
impl Freeze for ArchivedMetadata
impl RefUnwindSafe for ArchivedMetadata
impl Send for ArchivedMetadata
impl Sync for ArchivedMetadata
impl UnwindSafe for ArchivedMetadata
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.