Skip to main content

from_wxf

Function from_wxf 

Source
pub fn from_wxf<T>(bytes: &[u8]) -> Result<T, Error>
where T: for<'de> FromWXF<'de>,
Expand description

Deserialize bytes (WXF; 8: or 8C: auto-detected) into a typed T.

Use T = Expr for an untyped tree, or any FromWXF type — including those produced by #[derive(FromWXF)] — for typed deserialization with no intermediate Expr.