This works, *but constraints p1 and p2 to be of the same type. ... impl AsRef<str> for XmlDoc { fn as_ref(&self) -> &str { match self ...
確定! 回上一頁