Skip to main content

IntoScalar

Trait IntoScalar 

Source
pub trait IntoScalar: Copy {
    // Required method
    fn into_scalar(self) -> Scalar;
}
Expand description

A conversion into an element of the scalar field.

Required Methods§

Source

fn into_scalar(self) -> Scalar

Converts self to a field 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.

Implementations on Foreign Types§

Source§

impl IntoScalar for i32

Source§

impl IntoScalar for i64

Source§

impl IntoScalar for u64

Source§

impl IntoScalar for usize

Source§

impl IntoScalar for Scalar

Source§

impl<T: IntoScalar> IntoScalar for &T

Implementors§