snarkvm_circuit_environment::traits

Trait FromGroup

Source
pub trait FromGroup {
    type Group: GroupTrait<Self::Scalar>;
    type Scalar: ScalarTrait;

    // Required method
    fn from_group(group: Self::Group) -> Self;
}
Expand description

Unary operator for converting from an affine group element.

Required Associated Types§

Required Methods§

Source

fn from_group(group: Self::Group) -> Self

Casts a circuit from an affine group element.

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§