pub struct Attribute<'a> { /* private fields */ }Expand description
One original attribute, preserving all values without interpreting unknown syntax.
Implementations§
Source§impl<'a> Attribute<'a>
impl<'a> Attribute<'a>
Sourcepub fn kind_encoding(&self) -> &'a [u8] ⓘ
pub fn kind_encoding(&self) -> &'a [u8] ⓘ
The original attrType encoding, including its tag and length octets.
Sourcepub fn values(&self) -> &[Element<'a>]
pub fn values(&self) -> &[Element<'a>]
Every original value, including unknown or generically empty value sets.
Sourcepub fn value_reader(
&self,
index: usize,
execution: &Memory,
field: &'static str,
) -> Result<Option<Reader<'a>>>
pub fn value_reader( &self, index: usize, execution: &Memory, field: &'static str, ) -> Result<Option<Reader<'a>>>
Opens one original value in the current account and inherited parser depth.
The index selects this attribute’s catalogue, so a foreign element cannot be rebound to its provenance. No serialized bridge or replacement parser is used. Missing indices are absence; resource refusal remains an error.
Sourcepub fn value_reader_in<'query>(
&self,
index: usize,
parent: &Reader<'query>,
field: &'static str,
) -> Result<Option<Reader<'query>>>where
'a: 'query,
pub fn value_reader_in<'query>(
&self,
index: usize,
parent: &Reader<'query>,
field: &'static str,
) -> Result<Option<Reader<'query>>>where
'a: 'query,
Opens one original value with producing local and current aggregate work. A foreign parser session refuses before lookup/allocation; it cannot silently replace the current producing ceiling with this value’s old one.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Attribute<'a>
impl<'a> !RefUnwindSafe for Attribute<'a>
impl<'a> !Send for Attribute<'a>
impl<'a> !Sync for Attribute<'a>
impl<'a> !UnwindSafe for Attribute<'a>
impl<'a> Unpin for Attribute<'a>
impl<'a> UnsafeUnpin for Attribute<'a>
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