Struct XmlTagStartWrapper

Source
pub struct XmlTagStartWrapper<'a> { /* private fields */ }
Expand description

Contains a reference to the whole buffer and the chunk header of a TagStart

Implementations§

Source§

impl<'a> XmlTagStartWrapper<'a>

Source

pub fn new(raw_data: &'a [u8]) -> Self

Creates a new XmlTagStartWrapper

Source

pub fn to_buffer(&self) -> Result<XmlTagStartBuf, Error>

It converts the wrapper into a XmlTagStartBuf which can be later manipulated

Trait Implementations§

Source§

impl<'a> Debug for XmlTagStartWrapper<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> TagStart for XmlTagStartWrapper<'a>

Source§

type Attribute = AttributeWrapper<'a>

Type of the attributes
Source§

fn get_line(&self) -> Result<u32, Error>

Return the ¿line in which the tag appear?
Source§

fn get_field1(&self) -> Result<u32, Error>

Return the content of the unknown field1
Source§

fn get_namespace_index(&self) -> Result<u32, Error>

Return the namespace index. If there is no namespace, it will return 0xFFFF_FFFF
Source§

fn get_element_name_index(&self) -> Result<u32, Error>

Returns the index of the tag name on the string table
Source§

fn get_field2(&self) -> Result<u32, Error>

Return the content of the unknown field1
Source§

fn get_attributes_amount(&self) -> Result<u32, Error>

Return the amount of attributes this tag contains
Source§

fn get_class(&self) -> Result<u32, Error>

Returns the ¿class?
Source§

fn get_attribute(&self, index: u32) -> Result<Self::Attribute, Error>

Returns the attribute on the index position or error if it is greater than get_attributes_amount

Auto Trait Implementations§

§

impl<'a> Freeze for XmlTagStartWrapper<'a>

§

impl<'a> RefUnwindSafe for XmlTagStartWrapper<'a>

§

impl<'a> Send for XmlTagStartWrapper<'a>

§

impl<'a> Sync for XmlTagStartWrapper<'a>

§

impl<'a> Unpin for XmlTagStartWrapper<'a>

§

impl<'a> UnwindSafe for XmlTagStartWrapper<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.