pub enum RegionDetectionPolicy {
NameDriven,
ContentDriven,
Both,
}Expand description
Region detection strategy for mixed-language parsing.
Variants§
NameDriven
Use explicit region names such as fenced-code language tags.
ContentDriven
Use content sniffing.
Both
Use name-driven detection first and content-driven detection as a fallback.
Trait Implementations§
Source§impl Clone for RegionDetectionPolicy
impl Clone for RegionDetectionPolicy
Source§fn clone(&self) -> RegionDetectionPolicy
fn clone(&self) -> RegionDetectionPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RegionDetectionPolicy
Source§impl Debug for RegionDetectionPolicy
impl Debug for RegionDetectionPolicy
impl Eq for RegionDetectionPolicy
Source§impl PartialEq for RegionDetectionPolicy
impl PartialEq for RegionDetectionPolicy
Source§fn eq(&self, other: &RegionDetectionPolicy) -> bool
fn eq(&self, other: &RegionDetectionPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RegionDetectionPolicy
Auto Trait Implementations§
impl Freeze for RegionDetectionPolicy
impl RefUnwindSafe for RegionDetectionPolicy
impl Send for RegionDetectionPolicy
impl Sync for RegionDetectionPolicy
impl Unpin for RegionDetectionPolicy
impl UnsafeUnpin for RegionDetectionPolicy
impl UnwindSafe for RegionDetectionPolicy
Blanket Implementations§
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
Mutably borrows from an owned value. Read more