Struct gimli::read::AttributeSpecification
source · pub struct AttributeSpecification {
name: DwAt,
form: DwForm,
implicit_const_value: i64,
}
Expand description
The description of an attribute in an abbreviated type. It is a pair of name and form.
Fields§
§name: DwAt
§form: DwForm
§implicit_const_value: i64
Implementations§
source§impl AttributeSpecification
impl AttributeSpecification
sourcepub fn new(
name: DwAt,
form: DwForm,
implicit_const_value: Option<i64>,
) -> AttributeSpecification
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.
sourcepub fn implicit_const_value(&self) -> Option<i64>
pub fn implicit_const_value(&self) -> Option<i64>
Get the attribute’s implicit const value.
Trait Implementations§
source§impl Clone for AttributeSpecification
impl Clone for AttributeSpecification
source§fn clone(&self) -> AttributeSpecification
fn clone(&self) -> AttributeSpecification
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AttributeSpecification
impl Debug for AttributeSpecification
source§impl FromIterator<AttributeSpecification> for Attributes
impl FromIterator<AttributeSpecification> for Attributes
source§fn from_iter<I>(iter: I) -> Attributeswhere
I: IntoIterator<Item = AttributeSpecification>,
fn from_iter<I>(iter: I) -> Attributeswhere
I: IntoIterator<Item = AttributeSpecification>,
Creates a value from an iterator. Read more
source§impl PartialEq for AttributeSpecification
impl PartialEq for AttributeSpecification
source§fn eq(&self, other: &AttributeSpecification) -> bool
fn eq(&self, other: &AttributeSpecification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AttributeSpecification
impl Eq for AttributeSpecification
impl StructuralPartialEq for AttributeSpecification
Auto Trait Implementations§
impl Freeze for AttributeSpecification
impl RefUnwindSafe for AttributeSpecification
impl Send for AttributeSpecification
impl Sync for AttributeSpecification
impl Unpin for AttributeSpecification
impl UnwindSafe for AttributeSpecification
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more