kutil 0.0.5

Kutil utilities collection
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::any::*;

//
// IntoAnyRef
//

/// Convert into [Any] reference.
pub trait IntoAnyRef {
    /// Convert into [Any] reference.
    fn into_any_ref<AnyT>(&self) -> Option<&AnyT>
    where
        AnyT: Any;
}