Struct gimli::read::Abbreviation
source · pub struct Abbreviation {
code: u64,
tag: DwTag,
has_children: DwChildren,
attributes: Attributes,
}
Expand description
An abbreviation describes the shape of a DebuggingInformationEntry
’s type:
its code, tag type, whether it has children, and its set of attributes.
Fields§
§code: u64
§tag: DwTag
§has_children: DwChildren
§attributes: Attributes
Implementations§
source§impl Abbreviation
impl Abbreviation
sourcepub(crate) fn new(
code: u64,
tag: DwTag,
has_children: DwChildren,
attributes: Attributes,
) -> Abbreviation
pub(crate) fn new( code: u64, tag: DwTag, has_children: DwChildren, attributes: Attributes, ) -> Abbreviation
sourcepub fn has_children(&self) -> bool
pub fn has_children(&self) -> bool
Return true if this abbreviation’s type has children, false otherwise.
sourcepub fn attributes(&self) -> &[AttributeSpecification]
pub fn attributes(&self) -> &[AttributeSpecification]
Get this abbreviation’s attributes.
sourcefn parse_has_children<R: Reader>(input: &mut R) -> Result<DwChildren>
fn parse_has_children<R: Reader>(input: &mut R) -> Result<DwChildren>
Parse an abbreviation’s “does the type have children?” byte.
sourcefn parse_attributes<R: Reader>(input: &mut R) -> Result<Attributes>
fn parse_attributes<R: Reader>(input: &mut R) -> Result<Attributes>
Parse a series of attribute specifications, terminated by a null attribute specification.
Trait Implementations§
source§impl Clone for Abbreviation
impl Clone for Abbreviation
source§fn clone(&self) -> Abbreviation
fn clone(&self) -> Abbreviation
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 Abbreviation
impl Debug for Abbreviation
source§impl PartialEq for Abbreviation
impl PartialEq for Abbreviation
source§fn eq(&self, other: &Abbreviation) -> bool
fn eq(&self, other: &Abbreviation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Abbreviation
impl StructuralPartialEq for Abbreviation
Auto Trait Implementations§
impl Freeze for Abbreviation
impl RefUnwindSafe for Abbreviation
impl Send for Abbreviation
impl Sync for Abbreviation
impl Unpin for Abbreviation
impl UnwindSafe for Abbreviation
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