pub struct AttributeShell {
pub name_index: u16,
pub declared_length: u32,
pub bytes: Vec<u8>,
pub origin: Origin,
pub location: AttributeLocation,
}Expand description
An uninterpreted attribute spine entry, retained in its original order.
Fields§
§name_index: u16Raw constant-pool index of the attribute name.
declared_length: u32Declared attribute body length.
bytes: Vec<u8>Exact uninterpreted attribute body.
origin: OriginSource span covering the complete attribute, including its header.
location: AttributeLocationOwner and ordinal captured at decode time.
Trait Implementations§
Source§impl Clone for AttributeShell
impl Clone for AttributeShell
Source§fn clone(&self) -> AttributeShell
fn clone(&self) -> AttributeShell
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttributeShell
impl Debug for AttributeShell
impl Eq for AttributeShell
Source§impl PartialEq for AttributeShell
impl PartialEq for AttributeShell
impl StructuralPartialEq for AttributeShell
Auto Trait Implementations§
impl Freeze for AttributeShell
impl RefUnwindSafe for AttributeShell
impl Send for AttributeShell
impl Sync for AttributeShell
impl Unpin for AttributeShell
impl UnsafeUnpin for AttributeShell
impl UnwindSafe for AttributeShell
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