Function xmlhelper::decode::element [] [src]

pub fn element<S: XmlEventStream, N: ElementNameSet, F, T>(
    stream: &mut S,
    expected_name: N,
    f: F
) -> Result<T> where
    F: FnMut(&mut ElementScopedStream<S>) -> Result<T>, 

Consume an element, apply a function to an element scoped stream, return the function result