himalaya 0.5.7

Command-line interface for email management
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::{any, fmt};

use crate::output::PrintTable;

pub trait Envelopes: fmt::Debug + erased_serde::Serialize + PrintTable + any::Any {
    fn as_any(&self) -> &dyn any::Any;
}

impl<T: fmt::Debug + erased_serde::Serialize + PrintTable + any::Any> Envelopes for T {
    fn as_any(&self) -> &dyn any::Any {
        self
    }
}