pub struct ParseConfiguration { /* private fields */ }Expand description
Configuration for parse-to-network operations.
Implementations§
Source§impl ParseConfiguration
impl ParseConfiguration
Sourcepub const fn new(trivia_attachment_policy: TriviaAttachmentPolicy) -> Self
pub const fn new(trivia_attachment_policy: TriviaAttachmentPolicy) -> Self
Creates parse configuration with the supplied trivia policy.
Sourcepub const fn with_region_detection_policy(
self,
region_detection_policy: RegionDetectionPolicy,
) -> Self
pub const fn with_region_detection_policy( self, region_detection_policy: RegionDetectionPolicy, ) -> Self
Returns configuration with a mixed-language region detection policy.
Sourcepub const fn with_language_identification_detector(
self,
detector: LanguageIdentificationDetector,
) -> Self
pub const fn with_language_identification_detector( self, detector: LanguageIdentificationDetector, ) -> Self
Returns configuration with a natural-language identification backend.
Sourcepub const fn with_formalization_level(
self,
formalization_level: FormalizationLevel,
) -> Self
pub const fn with_formalization_level( self, formalization_level: FormalizationLevel, ) -> Self
Returns configuration with a formalization detail level.
Sourcepub const fn with_naturalization_direction(
self,
naturalization_direction: NaturalizationDirection,
) -> Self
pub const fn with_naturalization_direction( self, naturalization_direction: NaturalizationDirection, ) -> Self
Returns configuration with a naturalization/formalization direction.
Sourcepub const fn with_access_mode(self, access_mode: AccessMode) -> Self
pub const fn with_access_mode(self, access_mode: AccessMode) -> Self
Returns configuration with a read-only or mutable engine access mode.
Sourcepub const fn with_profile(self, profile: &'static str) -> Self
pub const fn with_profile(self, profile: &'static str) -> Self
Returns configuration with a language capability profile name.
Built-in profiles such as "JavaScript" are materialized as queryable
links during parsing. User-declared profiles can be supplied directly to
transform-time APIs.
Sourcepub const fn trivia_attachment_policy(self) -> TriviaAttachmentPolicy
pub const fn trivia_attachment_policy(self) -> TriviaAttachmentPolicy
Trivia attachment policy.
Sourcepub const fn region_detection_policy(self) -> RegionDetectionPolicy
pub const fn region_detection_policy(self) -> RegionDetectionPolicy
Mixed-language region detection policy.
Sourcepub const fn language_identification_detector(
self,
) -> LanguageIdentificationDetector
pub const fn language_identification_detector( self, ) -> LanguageIdentificationDetector
Natural-language identification backend.
Sourcepub const fn formalization_level(self) -> FormalizationLevel
pub const fn formalization_level(self) -> FormalizationLevel
Formalization detail level.
Sourcepub const fn naturalization_direction(self) -> NaturalizationDirection
pub const fn naturalization_direction(self) -> NaturalizationDirection
Naturalization/formalization direction.
Sourcepub const fn access_mode(self) -> AccessMode
pub const fn access_mode(self) -> AccessMode
Read-only or mutable engine access mode.
Trait Implementations§
Source§impl Clone for ParseConfiguration
impl Clone for ParseConfiguration
Source§fn clone(&self) -> ParseConfiguration
fn clone(&self) -> ParseConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParseConfiguration
impl Debug for ParseConfiguration
Source§impl Default for ParseConfiguration
impl Default for ParseConfiguration
Source§impl PartialEq for ParseConfiguration
impl PartialEq for ParseConfiguration
impl Copy for ParseConfiguration
impl Eq for ParseConfiguration
impl StructuralPartialEq for ParseConfiguration
Auto Trait Implementations§
impl Freeze for ParseConfiguration
impl RefUnwindSafe for ParseConfiguration
impl Send for ParseConfiguration
impl Sync for ParseConfiguration
impl Unpin for ParseConfiguration
impl UnsafeUnpin for ParseConfiguration
impl UnwindSafe for ParseConfiguration
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§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> 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
§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
key and return true if they are equal.§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
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 more