Trait wca::TryCast

source ·
pub trait TryCast<T> {
    // Required method
    fn try_cast(&self, value: String) -> Result<T>;
}
Expand description

Can be implemented for something that represents a type of value

Required Methods§

source

fn try_cast(&self, value: String) -> Result<T>

return casted value

Implementors§