<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="This represents an element of a group with basic operations that can be performed. This allows an FFT implementation (for example) to operate generically over either a field or elliptic curve group."><metaname="keywords"content="rust, rustlang, rust-lang, Group"><title>Group in halo2_proofs::arithmetic - Rust</title><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceSerif4-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../FiraSans-Regular.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../FiraSans-Medium.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceCodePro-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceSerif4-Bold.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceCodePro-Semibold.ttf.woff2"><linkrel="stylesheet"href="../../normalize.css"><linkrel="stylesheet"href="../../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"href="../../ayu.css"disabled><linkrel="stylesheet"href="../../dark.css"disabled><linkrel="stylesheet"href="../../light.css"id="themeStyle"><scriptid="default-settings"></script><scriptsrc="../../storage.js"></script><scriptdefersrc="sidebar-items.js"></script><scriptdefersrc="../../main.js"></script><noscript><linkrel="stylesheet"href="../../noscript.css"></noscript><linkrel="alternate icon"type="image/png"href="../../favicon-16x16.png"><linkrel="alternate icon"type="image/png"href="../../favicon-32x32.png"><linkrel="icon"type="image/svg+xml"href="../../favicon.svg"><linkrel="stylesheet"href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.css"integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y"crossorigin="anonymous">
type <ahref="#associatedtype.Scalar"class="associatedtype">Scalar</a>: <aclass="trait"href="trait.FieldExt.html"title="trait halo2_proofs::arithmetic::FieldExt">FieldExt</a>;
}</code></pre></div><detailsclass="rustdoc-toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>This represents an element of a group with basic operations that can be
performed. This allows an FFT implementation (for example) to operate
generically over either a field or elliptic curve group.</p>
</div></details><h2id="required-associated-types"class="small-section-header">Required Associated Types<ahref="#required-associated-types"class="anchor"></a></h2><divclass="methods"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="associatedtype.Scalar"class="method has-srclink"><h4class="code-header">type <ahref="#associatedtype.Scalar"class="associatedtype">Scalar</a>: <aclass="trait"href="trait.FieldExt.html"title="trait halo2_proofs::arithmetic::FieldExt">FieldExt</a></h4></section></summary><divclass="docblock"><p>The group is assumed to be of prime order $p$. <code>Scalar</code> is the
</div></details></div><h2id="required-methods"class="small-section-header">Required Methods<ahref="#required-methods"class="anchor"></a></h2><divclass="methods"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="tymethod.group_zero"class="method has-srclink"><h4class="code-header">fn <ahref="#tymethod.group_zero"class="fnname">group_zero</a>() -> Self</h4></section></summary><divclass="docblock"><p>Returns the additive identity of the group.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="tymethod.group_add"class="method has-srclink"><h4class="code-header">fn <ahref="#tymethod.group_add"class="fnname">group_add</a>(&mut self, rhs: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</h4></section></summary><divclass="docblock"><p>Adds <code>rhs</code> to this group element.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="tymethod.group_sub"class="method has-srclink"><h4class="code-header">fn <ahref="#tymethod.group_sub"class="fnname">group_sub</a>(&mut self, rhs: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</h4></section></summary><divclass="docblock"><p>Subtracts <code>rhs</code> from this group element.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="tymethod.group_scale"class="method has-srclink"><h4class="code-header">fn <ahref="#tymethod.group_scale"class="fnname">group_scale</a>(&mut self, by: &Self::<aclass="associatedtype"href="trait.Group.html#associatedtype.Scalar"title="type halo2_proofs::arithmetic::Group::Scalar">Scalar</a>)</h4></section></summary><divclass="docblock"><p>Scales this group element by a scalar.</p>