pub enum TierStrategy {
Auto,
Tier2,
}Expand description
Controls which conversion tier is used.
Variants§
Auto
Automatically pick the best tier for the input (default).
Runs the classifier against the prescan report and uses Tier-1 when eligible; falls back to Tier-2 on bail or when the classifier routes to Tier-2.
Tier2
Always use the Tier-2 (tl::parse + walk) path, skipping Tier-1.
Trait Implementations§
Source§impl Clone for TierStrategy
impl Clone for TierStrategy
Source§fn clone(&self) -> TierStrategy
fn clone(&self) -> TierStrategy
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 TierStrategy
Source§impl Debug for TierStrategy
impl Debug for TierStrategy
Source§impl Default for TierStrategy
impl Default for TierStrategy
Source§fn default() -> TierStrategy
fn default() -> TierStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TierStrategy
impl<'de> Deserialize<'de> for TierStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TierStrategy
Source§impl PartialEq for TierStrategy
impl PartialEq for TierStrategy
Source§fn eq(&self, other: &TierStrategy) -> bool
fn eq(&self, other: &TierStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TierStrategy
impl Serialize for TierStrategy
impl StructuralPartialEq for TierStrategy
Auto Trait Implementations§
impl Freeze for TierStrategy
impl RefUnwindSafe for TierStrategy
impl Send for TierStrategy
impl Sync for TierStrategy
impl Unpin for TierStrategy
impl UnsafeUnpin for TierStrategy
impl UnwindSafe for TierStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.