Enum 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§

Source§

impl<'dwarf, R> Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source

pub fn size(&self) -> Result<u64, Error>

The size of the type.

Trait Implementations§

Source§

impl<'dwarf, R> Clone for Type<'dwarf, R>
where R: Reader<Offset = usize> + Clone,

Source§

fn clone(&self) -> Type<'dwarf, R>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'dwarf, R> Debug for Type<'dwarf, R>
where R: Reader<Offset = usize> + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'dwarf, R> Display for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'dwarf, R> From<Array<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: Array<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<Box<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: Box<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<BoxedDyn<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: BoxedDyn<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<BoxedSlice<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: BoxedSlice<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<Enum<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: Enum<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<Function<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: Function<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<Pointer<'dwarf, Const, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: ConstPtr<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<Pointer<'dwarf, Mut, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: MutPtr<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<Pointer<'dwarf, Shared, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: SharedRef<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<Pointer<'dwarf, Unique, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: UniqueRef<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<Slice<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: Slice<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<Struct<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: Struct<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<bool<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: bool<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<char<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: char<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<f32<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: f32<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<f64<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: f64<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<i128<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: i128<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<i16<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: i16<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<i32<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: i32<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<i64<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: i64<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<i8<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

fn from(atom: i8<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<isize<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: isize<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<str<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: str<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<u128<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: u128<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<u16<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: u16<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<u32<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: u32<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<u64<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: u64<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<u8<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

fn from(atom: u8<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<unit<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: unit<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'dwarf, R> From<usize<'dwarf, R>> for Type<'dwarf, R>
where R: Reader<Offset = usize>,

Source§

fn from(atom: usize<'dwarf, R>) -> Self

Converts to this type from the input type.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a Array<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a Box<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a BoxedDyn<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a BoxedSlice<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a Enum<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a Function<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a ConstPtr<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a MutPtr<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a SharedRef<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a UniqueRef<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a Slice<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a Struct<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a bool<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a char<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a f32<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a f64<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a i128<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a i16<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a i32<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a i64<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a i8<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a isize<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a str<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a u128<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a u16<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a u32<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a u64<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a u8<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a unit<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, 'value, 'dwarf, R> TryFrom<&'a Type<'dwarf, R>> for &'a usize<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for Array<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for Box<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for BoxedDyn<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for BoxedSlice<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for Enum<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for Function<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for ConstPtr<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for MutPtr<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for SharedRef<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for UniqueRef<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for Slice<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for Struct<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for bool<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for char<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for f32<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for f64<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for i128<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for i16<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for i32<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for i64<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for i8<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for isize<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for str<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for u128<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for u16<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for u32<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for u64<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for u8<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for unit<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'value, 'dwarf, R> TryFrom<Type<'dwarf, R>> for usize<'dwarf, R>
where R: Reader<Offset = usize>,

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

Source§

type Error = DowncastErr

The type returned in the event of a conversion error.
Source§

fn try_from(value: Type<'dwarf, R>) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<'dwarf, R> !Freeze for Type<'dwarf, R>

§

impl<'dwarf, R> !RefUnwindSafe for Type<'dwarf, R>

§

impl<'dwarf, R> Send for Type<'dwarf, R>
where R: Send + Sync,

§

impl<'dwarf, R> !Sync for Type<'dwarf, R>

§

impl<'dwarf, R> Unpin for Type<'dwarf, R>
where R: Unpin,

§

impl<'dwarf, R> UnwindSafe for Type<'dwarf, R>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Reflect for T
where T: ?Sized,

Source§

fn local_type_id(&self) -> usize

Produces an ID that uniquely identifies the type within its compilation unit.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.