#[non_exhaustive]pub enum SnippetMode {
Auto,
Off,
}Expand description
Controls whether snippet output is included when available.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
Render snippets when the error is wrapped in Error::WithSnippet.
Off
Never render snippets; render a plain (location-suffixed) message instead.
Trait Implementations§
Source§impl Clone for SnippetMode
impl Clone for SnippetMode
Source§fn clone(&self) -> SnippetMode
fn clone(&self) -> SnippetMode
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 SnippetMode
Source§impl Debug for SnippetMode
impl Debug for SnippetMode
impl Eq for SnippetMode
Source§impl PartialEq for SnippetMode
impl PartialEq for SnippetMode
impl StructuralPartialEq for SnippetMode
Auto Trait Implementations§
impl Freeze for SnippetMode
impl RefUnwindSafe for SnippetMode
impl Send for SnippetMode
impl Sync for SnippetMode
impl Unpin for SnippetMode
impl UnsafeUnpin for SnippetMode
impl UnwindSafe for SnippetMode
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