Trait typemap::DebugAny [] [src]

pub trait DebugAny: Any + Debug { }

A marker trait meant for use as the A parameter in TypeMap.

This can be used to construct TypeMaps containing only types which implement Debug like so: TypeMap::<DebugAny>::custom(), which produces a TypeMap<DebugAny>. Combine DebugAny with Send or Sync to add additional bounds.

There is also an exported alias for this type of TypeMap, DebugMap.

Trait Implementations

impl UnsafeAnyExt for DebugAny

unsafe fn downcast_ref_unchecked<T>(&self) -> &T where T: Any

unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where T: Any

unsafe fn downcast_unchecked<T>(self: Box<Self>) -> Box<T> where T: Any

impl UnsafeAnyExt for DebugAny + Send

unsafe fn downcast_ref_unchecked<T>(&self) -> &T where T: Any

unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where T: Any

unsafe fn downcast_unchecked<T>(self: Box<Self>) -> Box<T> where T: Any

impl UnsafeAnyExt for DebugAny + Sync

unsafe fn downcast_ref_unchecked<T>(&self) -> &T where T: Any

unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where T: Any

unsafe fn downcast_unchecked<T>(self: Box<Self>) -> Box<T> where T: Any

impl UnsafeAnyExt for DebugAny + Send + Sync

unsafe fn downcast_ref_unchecked<T>(&self) -> &T where T: Any

unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where T: Any

unsafe fn downcast_unchecked<T>(self: Box<Self>) -> Box<T> where T: Any

Implementors