[−][src]Struct gimli::read::AttributeSpecification
The description of an attribute in an abbreviated type. It is a pair of name and form.
Implementations
impl AttributeSpecification
[src]
pub fn new(
name: DwAt,
form: DwForm,
implicit_const_value: Option<i64>
) -> AttributeSpecification
[src]
name: DwAt,
form: DwForm,
implicit_const_value: Option<i64>
) -> AttributeSpecification
Construct a new AttributeSpecification
from the given name and form
and implicit const value.
pub fn name(&self) -> DwAt
[src]
Get the attribute's name.
pub fn form(&self) -> DwForm
[src]
Get the attribute's form.
pub fn implicit_const_value(&self) -> i64
[src]
Get the attribute's implicit const value.
pub fn size<R: Reader>(&self, header: &UnitHeader<R>) -> Option<usize>
[src]
Return the size of the attribute, in bytes.
Note that because some attributes are variably sized, the size cannot
always be known without parsing, in which case we return None
.
Trait Implementations
impl Clone for AttributeSpecification
[src]
fn clone(&self) -> AttributeSpecification
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AttributeSpecification
[src]
impl Debug for AttributeSpecification
[src]
impl Eq for AttributeSpecification
[src]
impl PartialEq<AttributeSpecification> for AttributeSpecification
[src]
fn eq(&self, other: &AttributeSpecification) -> bool
[src]
fn ne(&self, other: &AttributeSpecification) -> bool
[src]
impl StructuralEq for AttributeSpecification
[src]
impl StructuralPartialEq for AttributeSpecification
[src]
Auto Trait Implementations
impl Send for AttributeSpecification
impl Sync for AttributeSpecification
impl Unpin for AttributeSpecification
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,