Skip to main content

SharedRef

Type Alias SharedRef 

Source
pub type SharedRef<'dwarf, R> = Pointer<'dwarf, Shared, R>;
Expand description

A reflected shared reference type.

Aliased Type§

pub struct SharedRef<'dwarf, R> { /* private fields */ }

Trait Implementations§

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<'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.