Enum xmt::OutputMode
source · [−]pub enum OutputMode {
Text,
Tree,
JSON,
}
Expand description
The different output modes supported by the library.
Variants
Text
Prints to stdout using Display.
Default.
Tree
Prints a tree to stdout using Serialize.
JSON
Prints a JSON representation of the object to stdout using Serialize.
Default when stdout is not a TTY.
Trait Implementations
sourceimpl Clone for OutputMode
impl Clone for OutputMode
sourcefn clone(&self) -> OutputMode
fn clone(&self) -> OutputMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OutputMode
impl Debug for OutputMode
sourceimpl Default for OutputMode
impl Default for OutputMode
sourceimpl PartialEq<OutputMode> for OutputMode
impl PartialEq<OutputMode> for OutputMode
impl Eq for OutputMode
impl StructuralEq for OutputMode
impl StructuralPartialEq for OutputMode
Auto Trait Implementations
impl RefUnwindSafe for OutputMode
impl Send for OutputMode
impl Sync for OutputMode
impl Unpin for OutputMode
impl UnwindSafe for OutputMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.