Trait uclicious::traits::FromObject
source · pub trait FromObject<T>: Sized {
// Required method
fn try_from(value: T) -> Result<Self, ObjectError>;
}
Expand description
Implement this trait on your types in order for automatic derive to work. This is a copy of TryFrom
.
Required Methods§
sourcefn try_from(value: T) -> Result<Self, ObjectError>
fn try_from(value: T) -> Result<Self, ObjectError>
Performs the conversion.