write_attrib

Function write_attrib 

Source
pub fn write_attrib<T>(
    bytes: &mut BytesStart<'_>,
    name: &str,
    attrib: &T,
) -> Result<(), Error>
where T: SerializeBytes,
Expand description

Write the passed attrib to the passed bytes object.

ยงErrors

An error is returned of the attribute could not be serialized.