Skip to main content

ForeignElement

Struct ForeignElement 

Source
pub struct ForeignElement<F1, F2> {
    pub value: F1,
    /* private fields */
}
Expand description

Element of F1 represented as 2 elements of F2

Fields§

§value: F1

Trait Implementations§

Source§

impl<F1, F2> From<F1> for ForeignElement<F1, F2>
where F1: Field, F2: Field,

Source§

fn from(value: F1) -> Self

Converts to this type from the input type.
Source§

impl<F1, F2> Message<F2> for ForeignElement<F1, F2>
where F1: Field, F2: Field,

Source§

fn len(_vars: usize, _param_resolver: &ParamResolver) -> usize

Source§

fn to_field_elements(&self) -> Vec<F2>

Auto Trait Implementations§

§

impl<F1, F2> Freeze for ForeignElement<F1, F2>
where F1: Freeze,

§

impl<F1, F2> RefUnwindSafe for ForeignElement<F1, F2>

§

impl<F1, F2> Send for ForeignElement<F1, F2>
where F1: Send, F2: Send,

§

impl<F1, F2> Sync for ForeignElement<F1, F2>
where F1: Sync, F2: Sync,

§

impl<F1, F2> Unpin for ForeignElement<F1, F2>
where F1: Unpin, F2: Unpin,

§

impl<F1, F2> UnsafeUnpin for ForeignElement<F1, F2>
where F1: UnsafeUnpin,

§

impl<F1, F2> UnwindSafe for ForeignElement<F1, F2>
where F1: UnwindSafe, F2: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V