[][src]Struct abxml::model::owned::XmlTagStartBuf

pub struct XmlTagStartBuf {
    attributes: Vec<AttributeBuf>,
    name: u32,
    namespace: u32,
    line: u32,
    field1: u32,
    field2: u32,
    class: u32,
}

Representation of a XML Tag start chunk

Fields

attributes: Vec<AttributeBuf>

Attributes of the tag

name: u32

Index of the string on the main string table

namespace: u32

Index of the namespace

line: u32

¿Line of the xml?

field1: u32

Unknown field

field2: u32

Unknown field

class: u32

¿Class?

Methods

impl XmlTagStartBuf[src]

pub fn new(
    line: u32,
    field1: u32,
    namespace: u32,
    name: u32,
    field2: u32,
    class: u32
) -> Self
[src]

Creates a new XmlTagStartBuf with the given data

pub fn add_attribute(&mut self, attribute: AttributeBuf)[src]

Adds a new attribute to the XML tag

Trait Implementations

impl OwnedBuf for XmlTagStartBuf[src]

fn to_vec(&self) -> Result<Vec<u8>, Error>[src]

Convert the given OwnedBuf to a well formed chunk in form of vector of bytes

fn write_header(&self, buffer: &mut Vec<u8>, body: &[u8]) -> Result<(), Error>[src]

Writes the header to the output buffer. It writes token, header size and chunk_size and then the data returned by get_header. Read more

impl TagStart for XmlTagStartBuf[src]

type Attribute = AttributeBuf

Type of the attributes

impl Debug for XmlTagStartBuf[src]

Auto Trait Implementations

impl Unpin for XmlTagStartBuf

impl Sync for XmlTagStartBuf

impl Send for XmlTagStartBuf

impl UnwindSafe for XmlTagStartBuf

impl RefUnwindSafe for XmlTagStartBuf

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]