xso: deprecate try_from_element
It is not necessary anymore, because we switched from `IntoXml` to `AsXml`, allowing `transform` to work with a reference instead of consuming its input. Before that, `try_from_element` was the only way to fallibly attempt to parse something from `Element` without having to clone the entire DOM.
This commit is contained in:
parent
88561269bd
commit
c4de8725fc
5 changed files with 50 additions and 66 deletions
|
|
@ -52,9 +52,9 @@ pub enum Error {
|
|||
|
||||
/// An element header did not match an expected element.
|
||||
///
|
||||
/// This is only rarely generated: most of the time, a mismatch of element
|
||||
/// types is reported as either an unexpected or a missing child element,
|
||||
/// errors which are generally more specific.
|
||||
/// This error condition is only generated when the top-level element
|
||||
/// passed to [`transform`][`crate::transform`] or similar does not match
|
||||
/// the type.
|
||||
TypeMismatch,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue