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§
type Group: GroupTrait<Self::Scalar>
type Scalar: ScalarTrait
Required Methods§
Sourcefn from_group(group: Self::Group) -> Self
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.