Struct fat_type::Erased[][src]

pub struct Erased<T: ?Sized> { /* fields omitted */ }
Expand description

A value with a partially erased type.

The type is erased to T, which will generally be a trait object or slice.

Usage

An Erased value cannot be used in any way without its associated metadata, which is provided by the Fat<T> type.

Reading or writing a value of this type has absolutely no effect. It supports no operations and implements only the automatic traits it inherits from T.

Future Compatibility

In the future direct operations may become entirely forbidden.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.