Struct gimli::AttributeSpecification [−][src]
pub struct AttributeSpecification { /* fields omitted */ }
The description of an attribute in an abbreviated type. It is a pair of name and form.
Methods
impl AttributeSpecification
[src]
impl AttributeSpecification
pub fn new(
name: DwAt,
form: DwForm,
implicit_const_value: Option<i64>
) -> AttributeSpecification
[src]
pub fn new(
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]
pub fn name(&self) -> DwAt
Get the attribute's name.
pub fn form(&self) -> DwForm
[src]
pub fn form(&self) -> DwForm
Get the attribute's form.
pub fn implicit_const_value(&self) -> i64
[src]
pub fn implicit_const_value(&self) -> i64
Get the attribute's implicit const value.
pub fn size<R: Reader>(
&self,
header: &UnitHeader<R, R::Offset>
) -> Option<usize>
[src]
pub fn size<R: Reader>(
&self,
header: &UnitHeader<R, R::Offset>
) -> Option<usize>
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 Debug for AttributeSpecification
[src]
impl Debug for AttributeSpecification
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for AttributeSpecification
[src]
impl Clone for AttributeSpecification
fn clone(&self) -> AttributeSpecification
[src]
fn clone(&self) -> AttributeSpecification
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for AttributeSpecification
[src]
impl Copy for AttributeSpecification
impl PartialEq for AttributeSpecification
[src]
impl PartialEq for AttributeSpecification
fn eq(&self, other: &AttributeSpecification) -> bool
[src]
fn eq(&self, other: &AttributeSpecification) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AttributeSpecification) -> bool
[src]
fn ne(&self, other: &AttributeSpecification) -> bool
This method tests for !=
.
impl Eq for AttributeSpecification
[src]
impl Eq for AttributeSpecification
Auto Trait Implementations
impl Send for AttributeSpecification
impl Send for AttributeSpecification
impl Sync for AttributeSpecification
impl Sync for AttributeSpecification