Expand description
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
sourceimpl UnsafeAnyExt for dyn DebugAny
impl UnsafeAnyExt for dyn DebugAny
sourceunsafe fn downcast_ref_unchecked<T>(&self) -> &T where
T: Any,
unsafe fn downcast_ref_unchecked<T>(&self) -> &T where
T: Any,
Returns a reference to the contained value, assuming that it is of type T. Read more
sourceunsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where
T: Any,
unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where
T: Any,
Returns a mutable reference to the contained value, assuming that it is of type T. Read more
sourceimpl UnsafeAnyExt for dyn DebugAny + Send
impl UnsafeAnyExt for dyn DebugAny + Send
sourceunsafe fn downcast_ref_unchecked<T>(&self) -> &T where
T: Any,
unsafe fn downcast_ref_unchecked<T>(&self) -> &T where
T: Any,
Returns a reference to the contained value, assuming that it is of type T. Read more
sourceunsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where
T: Any,
unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where
T: Any,
Returns a mutable reference to the contained value, assuming that it is of type T. Read more
sourceimpl UnsafeAnyExt for dyn DebugAny + Sync
impl UnsafeAnyExt for dyn DebugAny + Sync
sourceunsafe fn downcast_ref_unchecked<T>(&self) -> &T where
T: Any,
unsafe fn downcast_ref_unchecked<T>(&self) -> &T where
T: Any,
Returns a reference to the contained value, assuming that it is of type T. Read more
sourceunsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where
T: Any,
unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where
T: Any,
Returns a mutable reference to the contained value, assuming that it is of type T. Read more
sourceimpl UnsafeAnyExt for dyn DebugAny + Send + Sync
impl UnsafeAnyExt for dyn DebugAny + Send + Sync
sourceunsafe fn downcast_ref_unchecked<T>(&self) -> &T where
T: Any,
unsafe fn downcast_ref_unchecked<T>(&self) -> &T where
T: Any,
Returns a reference to the contained value, assuming that it is of type T. Read more
sourceunsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where
T: Any,
unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where
T: Any,
Returns a mutable reference to the contained value, assuming that it is of type T. Read more