Trait uclicious::traits::FromObject [−][src]
pub trait FromObject<T>: Sized {
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
fn try_from(value: T) -> Result<Self, ObjectError>
fn try_from(value: T) -> Result<Self, ObjectError>
Performs the conversion.