Enum deflect::Type

source ·
#[non_exhaustive]
pub enum Type<'dwarf, R>where
    R: Reader<Offset = usize>,
{
Show 30 variants bool(bool<'dwarf, R>), char(char<'dwarf, R>), f32(f32<'dwarf, R>), f64(f64<'dwarf, R>), i8(i8<'dwarf, R>), i16(i16<'dwarf, R>), i32(i32<'dwarf, R>), i64(i64<'dwarf, R>), i128(i128<'dwarf, R>), isize(isize<'dwarf, R>), u8(u8<'dwarf, R>), u16(u16<'dwarf, R>), u32(u32<'dwarf, R>), u64(u64<'dwarf, R>), u128(u128<'dwarf, R>), usize(usize<'dwarf, R>), unit(unit<'dwarf, R>), str(str<'dwarf, R>), Array(Array<'dwarf, R>), Box(Box<'dwarf, R>), BoxedSlice(BoxedSlice<'dwarf, R>), BoxedDyn(BoxedDyn<'dwarf, R>), Slice(Slice<'dwarf, R>), Struct(Struct<'dwarf, R>), Enum(Enum<'dwarf, R>), Function(Function<'dwarf, R>), SharedRef(SharedRef<'dwarf, R>), UniqueRef(UniqueRef<'dwarf, R>), ConstPtr(ConstPtr<'dwarf, R>), MutPtr(MutPtr<'dwarf, R>),
}
Expand description

A reflected type.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

bool(bool<'dwarf, R>)

A reflected bool.

§

char(char<'dwarf, R>)

A reflected char.

§

f32(f32<'dwarf, R>)

A reflected f32.

§

f64(f64<'dwarf, R>)

A reflected f64.

§

i8(i8<'dwarf, R>)

A reflected i8.

§

i16(i16<'dwarf, R>)

A reflected i16.

§

i32(i32<'dwarf, R>)

A reflected i32.

§

i64(i64<'dwarf, R>)

A reflected i64.

§

i128(i128<'dwarf, R>)

A reflected i128.

§

isize(isize<'dwarf, R>)

A reflected isize.

§

u8(u8<'dwarf, R>)

A reflected u8.

§

u16(u16<'dwarf, R>)

A reflected u16.

§

u32(u32<'dwarf, R>)

A reflected u32.

§

u64(u64<'dwarf, R>)

A reflected u64.

§

u128(u128<'dwarf, R>)

A reflected u128.

§

usize(usize<'dwarf, R>)

A reflected usize.

§

unit(unit<'dwarf, R>)

A reflected ().

§

str(str<'dwarf, R>)

A reflected str.

§

Array(Array<'dwarf, R>)

A reflected array.

§

Box(Box<'dwarf, R>)

A reflected Box.

§

BoxedSlice(BoxedSlice<'dwarf, R>)

A reflected Box’d slice.

§

BoxedDyn(BoxedDyn<'dwarf, R>)

A reflected Box’d dyn.

§

Slice(Slice<'dwarf, R>)

A reflected slice.

§

Struct(Struct<'dwarf, R>)

A reflected struct.

§

Enum(Enum<'dwarf, R>)

A reflected enum.

§

Function(Function<'dwarf, R>)

A reflected function.

§

SharedRef(SharedRef<'dwarf, R>)

A reflected shared reference.

§

UniqueRef(UniqueRef<'dwarf, R>)

A reflected unique reference.

§

ConstPtr(ConstPtr<'dwarf, R>)

A reflected const pointer.

§

MutPtr(MutPtr<'dwarf, R>)

A reflected mut pointer.

Implementations§

The size of the type.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

Upcast a i8<'dwarf, R> into a Type<'dwarf, R>.

Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

Upcast a u8<'dwarf, R> into a Type<'dwarf, R>.

Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

Attempt to downcast a &Type<'dwarf, R> into a &Array<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &Box<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &BoxedDyn<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &BoxedSlice<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &ConstPtr<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &Enum<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &Function<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &MutPtr<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &SharedRef<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &Slice<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &Struct<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &UniqueRef<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &bool<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &char<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &f32<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &f64<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &i128<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &i16<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &i32<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &i64<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &i8<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &isize<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &str<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &u128<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &u16<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &u32<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &u64<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &u8<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &unit<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a &Type<'dwarf, R> into a &usize<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a Array<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a Box<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a BoxedDyn<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a BoxedSlice<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a ConstPtr<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a Enum<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a Function<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a MutPtr<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a SharedRef<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a Slice<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a Struct<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a UniqueRef<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a bool<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a char<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a f32<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a f64<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a i128<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a i16<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a i32<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a i64<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a i8<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a isize<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a str<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a u128<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a u16<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a u32<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a u64<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a u8<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a unit<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

Attempt to downcast a Type<'dwarf, R> into a usize<'dwarf, R>.

The type returned in the event of a conversion error.
Performs the conversion.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Produces an ID that uniquely identifies the type within its compilation unit. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
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.