pub fn write_attrib_opt<T>(
bytes: &mut BytesStart<'_>,
name: &str,
attrib: &Option<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.