diff --git a/src/types/traits/try_from_impl.rs b/src/types/traits/try_from_impl.rs index cc4dd9c..5dce092 100644 --- a/src/types/traits/try_from_impl.rs +++ b/src/types/traits/try_from_impl.rs @@ -33,6 +33,12 @@ impl From for String { String(c_char) } } +/// Plainly here for convenience +impl From<&str> for String { + fn from(value: &str) -> Self { + value.to_owned().into() + } +} impl TryFrom for std::string::String { type Error = crate::types::error::TypeConversionError;