Skip to main content

get_attribute

Function get_attribute 

Source
fn get_attribute(
    b: &[u8],
    pos: &mut usize,
) -> Result<Option<(Vec<u8>, Vec<u8>)>, ()>
Expand description

「get an attribute」(§13.2.3.3)。Ok(Some) は属性、Ok(None) は属性の終わり(> に到達)、Err は入力の終わり。