pub trait Transparent: OtCastable + Clone {
// Required methods
fn from_ot(x: Self::OtType) -> Self;
fn into_ot(self) -> Self::OtType;
}
Expand description
Trait used to indicate that the implementing type can be used by value and converted to/from the associated OpenThread type by value.
Unlike types that implement the trait [Boxable
], types implementing
this trait may be passed and used by value.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.