pub enum ParseStrategy {
Only(Variant),
Fallback {
first: Variant,
fallback_to: Variant,
},
}
Expand description
Option to determine whether only to parse one rust-toolchain variant (TOML, or legacy), or to fallback to another variant.
Variants§
Trait Implementations§
Source§impl Clone for ParseStrategy
impl Clone for ParseStrategy
Source§fn clone(&self) -> ParseStrategy
fn clone(&self) -> ParseStrategy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParseStrategy
impl Debug for ParseStrategy
Source§impl PartialEq for ParseStrategy
impl PartialEq for ParseStrategy
impl Copy for ParseStrategy
impl StructuralPartialEq for ParseStrategy
Auto Trait Implementations§
impl Freeze for ParseStrategy
impl RefUnwindSafe for ParseStrategy
impl Send for ParseStrategy
impl Sync for ParseStrategy
impl Unpin for ParseStrategy
impl UnwindSafe for ParseStrategy
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