Trait tfhe::core_crypto::commons::numeric::CastInto

source ·
pub trait CastInto<Output> {
    // Required method
    fn cast_into(self) -> Output;
}
Expand description

A trait that allows to generically cast one type into another.

This type is similar to the std::convert::Into trait, but the conversion between the two types is deferred to the individual as casting. If in doubt about the semantics of such a casting, refer to the rust reference.

Required Methods§

source

fn cast_into(self) -> Output

Implementors§

source§

impl<Input, Output> CastInto<Output> for Input
where Output: CastFrom<Input>,