Tutorial by Examples: asmut

std::convert::AsRef and std::convert::AsMut are used for cheaply converting types to references. For types A and B, impl AsRef<B> for A indicates that a &A can be converted to a &B and, impl AsMut<B> for A indicates that a &mut A can be converted to a &mut B. Thi...

Page 1 of 1