Skip to main content

ReadVariant

Trait ReadVariant 

Source
pub unsafe trait ReadVariant: PlaceHandle
where Self::Target: Matchable,
{ // Required method unsafe fn read_variant(self) -> &'static str; }
Expand description

Obtain the discriminant of the contents of a place.

Required Methods§

Source

unsafe fn read_variant(self) -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§