pub trait Cast: RudaPrimitive {
// Required method
fn cast_from<From: RudaPrimitive>(value: From) -> Self;
// Provided method
fn __expand_cast_from<From: RudaPrimitive>(
scope: &mut Scope,
value: NativeExpand<From>,
) -> <Self as RudaType>::ExpandType { ... }
}Expand description
Enable elegant casting from any to any RudaElem
Required Methods§
fn cast_from<From: RudaPrimitive>(value: From) -> Self
Provided Methods§
fn __expand_cast_from<From: RudaPrimitive>( scope: &mut Scope, value: NativeExpand<From>, ) -> <Self as RudaType>::ExpandType
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".