pub trait TagStart {
type Attribute: AttributeTrait;
fn get_line(&self) -> Result<u32, Error>;
fn get_field1(&self) -> Result<u32, Error>;
fn get_namespace_index(&self) -> Result<u32, Error>;
fn get_element_name_index(&self) -> Result<u32, Error>;
fn get_field2(&self) -> Result<u32, Error>;
fn get_attributes_amount(&self) -> Result<u32, Error>;
fn get_class(&self) -> Result<u32, Error>;
fn get_attribute(&self, index: u32) -> Result<Self::Attribute, Error>;
}
Expand description
Trait that represents a XML tag start
Required Associated Types
sourcetype Attribute: AttributeTrait
type Attribute: AttributeTrait
Type of the attributes
Required Methods
sourcefn get_field1(&self) -> Result<u32, Error>
fn get_field1(&self) -> Result<u32, Error>
Return the content of the unknown field1
sourcefn get_namespace_index(&self) -> Result<u32, Error>
fn get_namespace_index(&self) -> Result<u32, Error>
Return the namespace index. If there is no namespace, it will return 0xFFFF_FFFF
sourcefn get_element_name_index(&self) -> Result<u32, Error>
fn get_element_name_index(&self) -> Result<u32, Error>
Returns the index of the tag name on the string table
sourcefn get_field2(&self) -> Result<u32, Error>
fn get_field2(&self) -> Result<u32, Error>
Return the content of the unknown field1
sourcefn get_attributes_amount(&self) -> Result<u32, Error>
fn get_attributes_amount(&self) -> Result<u32, Error>
Return the amount of attributes this tag contains