We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 36c0a13 + ccc99cd commit 60bb686Copy full SHA for 60bb686
crates/js-sys/src/lib.rs
@@ -1089,6 +1089,7 @@ impl Function {
1089
///
1090
/// If this JS value is not an instance of a function then this returns
1091
/// `None`.
1092
+ #[deprecated(note = "recommended to use dyn_ref instead which is now equivalent")]
1093
pub fn try_from(val: &JsValue) -> Option<&Function> {
1094
val.dyn_ref()
1095
}
@@ -3819,6 +3820,7 @@ impl JsString {
3819
3820
3821
/// If this JS value is not an instance of a string then this returns
3822
3823
3824
pub fn try_from(val: &JsValue) -> Option<&JsString> {
3825
3826
0 commit comments