Any

Trait Any 

Source
pub trait Any { }
Expand description

Dummy trait implemented by every type.

As such, its trait object vtable only contains the drop impl for the type. Used to type erase the closure type in BareFn and friends.

Blanket Implementations§

Source§

impl<'a, T> ToBoxedDyn<dyn Any + 'a> for T
where T: 'a,

Source§

fn to_boxed_unsize(value: T) -> Box<dyn Any + 'a>

Constructs a Box<T> from Self, coercing into the unsized type.

Implementors§

Source§

impl<T: ?Sized> Any for T