BinaryViewDowncast

Trait BinaryViewDowncast 

Source
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§

Source

type Output<T: BinaryViewType>

The output type after downcasting.

Required Methods§

Source

fn into_binary(self) -> Self::Output<BinaryType>

Downcast to a binary type.

Source

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.

Implementors§