Function pyo3_macros_backend::utils::option_type_argument
source · pub fn option_type_argument(ty: &Type) -> Option<&Type>
Expand description
If ty
is Option<T>
, return Some(T)
, else None
.
pub fn option_type_argument(ty: &Type) -> Option<&Type>
If ty
is Option<T>
, return Some(T)
, else None
.