[−][src]Struct abxml::chunks::xml::AttributeWrapper
Contains a slice that represents an attribute
Fields
slice: &'a [u8]
Methods
impl<'a> AttributeWrapper<'a>
[src]
pub fn new(slice: &'a [u8]) -> Self
[src]
Creates a new AttributeWrapper
pub fn to_buffer(&self) -> Result<AttributeBuf, Error>
[src]
It converts the wrapper into a AttributeBuf
which can be later manipulated
Trait Implementations
impl<'a> AttributeTrait for AttributeWrapper<'a>
[src]
fn get_namespace(&self) -> Result<u32, Error>
[src]
fn get_name(&self) -> Result<u32, Error>
[src]
fn get_class(&self) -> Result<u32, Error>
[src]
fn get_resource_value(&self) -> Result<u32, Error>
[src]
fn get_data(&self) -> Result<u32, Error>
[src]
fn get_value(&self) -> Result<Value, Error>
[src]
Creates a Value
depending on the data type and data value
impl<'a> Debug for AttributeWrapper<'a>
[src]
Auto Trait Implementations
impl<'a> Unpin for AttributeWrapper<'a>
impl<'a> Sync for AttributeWrapper<'a>
impl<'a> Send for AttributeWrapper<'a>
impl<'a> UnwindSafe for AttributeWrapper<'a>
impl<'a> RefUnwindSafe for AttributeWrapper<'a>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,