pub struct AttributeValue<'a> { /* private fields */ }Expand description
The value of an attribute, as it was encoded.
Implementations§
Source§impl<'a> AttributeValue<'a>
impl<'a> AttributeValue<'a>
Sourcepub fn text(self, execution: &Memory) -> Result<Option<OwnedString>>
pub fn text(self, execution: &Memory) -> Result<Option<OwnedString>>
The value as text for a person to read, where it is text at all.
Bounded, because this is the public reading path and a value may be as wide as the element limit permits while several attribute types have no ceiling in the schema. What is shown is as much of the value as the widest name component the profile names, and a mark saying the rest is there. Identity is the bytes and is never this.
The returned string retains its storage charge independently of the parser.
§Errors
Returns a located resource error before unfunded decoding or allocation.
Trait Implementations§
Source§impl<'a> Clone for AttributeValue<'a>
impl<'a> Clone for AttributeValue<'a>
impl<'a> Copy for AttributeValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for AttributeValue<'a>
impl<'a> RefUnwindSafe for AttributeValue<'a>
impl<'a> Send for AttributeValue<'a>
impl<'a> Sync for AttributeValue<'a>
impl<'a> Unpin for AttributeValue<'a>
impl<'a> UnsafeUnpin for AttributeValue<'a>
impl<'a> UnwindSafe for AttributeValue<'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