pub trait BinaryViewDowncast {
type Output<T: BinaryViewType>;
// Required methods
fn into_binary(self) -> Self::Output<BinaryType>;
fn into_string(self) -> Self::Output<StringType>;
}Expand description
Trait for downcasting generic variable binary types to specific types.
Required Associated Types§
Sourcetype Output<T: BinaryViewType>
type Output<T: BinaryViewType>
The output type after downcasting.
Required Methods§
Sourcefn into_binary(self) -> Self::Output<BinaryType>
fn into_binary(self) -> Self::Output<BinaryType>
Downcast to a binary type.
Sourcefn into_string(self) -> Self::Output<StringType>
fn into_string(self) -> Self::Output<StringType>
Downcast to a string type.
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.