DebugWithDb

Trait DebugWithDb 

Source
pub trait DebugWithDb<'db> {
    type Db: ?Sized;

    // Required method
    fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result;

    // Provided methods
    fn debug<'me>(&'me self, db: &'db Self::Db) -> DebugWith<'me, 'db, Self::Db>
       where Self: Sized + 'me { ... }
    fn into_debug<'me>(self, db: &'db Self::Db) -> DebugWith<'me, 'db, Self::Db>
       where Self: Sized + 'me { ... }
}

Required Associated Types§

Required Methods§

Source

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Provided Methods§

Source

fn debug<'me>(&'me self, db: &'db Self::Db) -> DebugWith<'me, 'db, Self::Db>
where Self: Sized + 'me,

Source

fn into_debug<'me>(self, db: &'db Self::Db) -> DebugWith<'me, 'db, Self::Db>
where Self: Sized + 'me,

Implementations on Foreign Types§

Source§

impl<'db, A> DebugWithDb<'db> for (A,)
where A: DebugWithDb<'db>,

Source§

type Db = <A as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, A, B> DebugWithDb<'db> for (A, B)
where A: DebugWithDb<'db>, B: DebugWithDb<'db> + 'db, A::Db: DebugDbUpcast<'db, B::Db>,

Source§

type Db = <A as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, A, B, C> DebugWithDb<'db> for (A, B, C)
where A: DebugWithDb<'db>, B: DebugWithDb<'db> + 'db, C: DebugWithDb<'db> + 'db, A::Db: DebugDbUpcast<'db, B::Db> + DebugDbUpcast<'db, C::Db>,

Source§

type Db = <A as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, K, V> DebugWithDb<'db> for BTreeMap<K, V>
where K: DebugWithDb<'db>, V: DebugWithDb<'db, Db = K::Db>,

Source§

type Db = <K as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, K, V> DebugWithDb<'db> for OrderedHashMap<K, V>
where K: DebugWithDb<'db> + Hash + Eq, V: DebugWithDb<'db, Db = K::Db>,

Source§

type Db = <K as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, K, V, S> DebugWithDb<'db> for HashMap<K, V, S>
where K: DebugWithDb<'db>, V: DebugWithDb<'db, Db = K::Db>,

Source§

type Db = <K as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, T> DebugWithDb<'db> for Option<T>
where T: DebugWithDb<'db>,

Source§

type Db = <T as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, T> DebugWithDb<'db> for &T
where T: DebugWithDb<'db> + ?Sized,

Source§

type Db = <T as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, T> DebugWithDb<'db> for [T]
where T: DebugWithDb<'db>,

Source§

type Db = <T as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, T> DebugWithDb<'db> for Box<T>
where T: DebugWithDb<'db> + ?Sized,

Source§

type Db = <T as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, T> DebugWithDb<'db> for Rc<T>
where T: DebugWithDb<'db>,

Source§

type Db = <T as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, T> DebugWithDb<'db> for Arc<T>
where T: DebugWithDb<'db> + ?Sized,

Source§

type Db = <T as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, T> DebugWithDb<'db> for Vec<T>
where T: DebugWithDb<'db>,

Source§

type Db = <T as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, T> DebugWithDb<'db> for Id<T>
where T: DebugWithDb<'db>, Id<T>: DebugWithDbOverride<'db, T::Db>,

Source§

type Db = <T as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, V> DebugWithDb<'db> for BTreeSet<V>
where V: DebugWithDb<'db>,

Source§

type Db = <V as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, V> DebugWithDb<'db> for OrderedHashSet<V>
where V: DebugWithDb<'db> + Hash + Eq,

Source§

type Db = <V as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Source§

impl<'db, V, S> DebugWithDb<'db> for HashSet<V, S>
where V: DebugWithDb<'db>,

Source§

type Db = <V as DebugWithDb<'db>>::Db

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result

Implementors§