pub struct XMT { /* private fields */ }
Expand description
Root formatter struct.
Implementations
sourceimpl XMT
impl XMT
pub fn print(&self, msg: &str)
pub fn success(&self, msg: &str)
pub fn out<S: Serialize + Display>(&self, obj: S)
pub fn warn(&self, msg: &str)
pub fn error(&self, msg: &str)
pub fn nest(&self) -> Self
pub fn prompt_yn(&self, msg: &str, default: bool) -> Result<bool>
pub fn prompt(&self, msg: &str) -> Result<String>
pub fn pick<'a, E: Display>(&self, msg: &str, items: &'a [E]) -> Result<&'a E>
Trait Implementations
impl Eq for XMT
impl StructuralEq for XMT
impl StructuralPartialEq for XMT
Auto Trait Implementations
impl RefUnwindSafe for XMT
impl Send for XMT
impl Sync for XMT
impl Unpin for XMT
impl UnwindSafe for XMT
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.