cairo_lang_debug::debug

Trait DebugWithDb

source
pub trait DebugWithDb<Db: ?Sized> {
    // Required method
    fn fmt(&self, f: &mut Formatter<'_>, db: &Db) -> Result;

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

Required Methods§

source

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

Provided Methods§

source

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

source

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

Implementations on Foreign Types§

source§

impl<Db: ?Sized, A> DebugWithDb<Db> for (A,)
where A: DebugWithDb<Db>,

source§

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

source§

impl<Db: ?Sized, A, B> DebugWithDb<Db> for (A, B)
where A: DebugWithDb<Db>, B: DebugWithDb<Db>,

source§

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

source§

impl<Db: ?Sized, A, B, C> DebugWithDb<Db> for (A, B, C)
where A: DebugWithDb<Db>, B: DebugWithDb<Db>, C: DebugWithDb<Db>,

source§

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

source§

impl<Db: ?Sized, K, V> DebugWithDb<Db> for BTreeMap<K, V>
where K: DebugWithDb<Db>, V: DebugWithDb<Db>,

source§

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

source§

impl<Db: ?Sized, K, V> DebugWithDb<Db> for OrderedHashMap<K, V>
where K: DebugWithDb<Db> + Hash + Eq, V: DebugWithDb<Db>,

source§

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

source§

impl<Db: ?Sized, K, V, S> DebugWithDb<Db> for HashMap<K, V, S>
where K: DebugWithDb<Db>, V: DebugWithDb<Db>,

source§

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

source§

impl<Db: ?Sized, T> DebugWithDb<Db> for Option<T>
where T: DebugWithDb<Db>,

source§

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

source§

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

source§

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

source§

impl<Db: ?Sized, T> DebugWithDb<Db> for [T]
where T: DebugWithDb<Db>,

source§

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

source§

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

source§

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

source§

impl<Db: ?Sized, T> DebugWithDb<Db> for Rc<T>
where T: DebugWithDb<Db>,

source§

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

source§

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

source§

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

source§

impl<Db: ?Sized, T> DebugWithDb<Db> for Vec<T>
where T: DebugWithDb<Db>,

source§

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

source§

impl<Db: ?Sized, V> DebugWithDb<Db> for BTreeSet<V>
where V: DebugWithDb<Db>,

source§

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

source§

impl<Db: ?Sized, V> DebugWithDb<Db> for OrderedHashSet<V>
where V: DebugWithDb<Db> + Hash + Eq,

source§

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

source§

impl<Db: ?Sized, V, S> DebugWithDb<Db> for HashSet<V, S>
where V: DebugWithDb<Db>,

source§

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

Implementors§