pub struct Felt(/* private fields */);Expand description
A Felt backed by Plonky3’s Goldilocks field element.
Implementations§
Source§impl Felt
impl Felt
pub const ZERO: Felt
pub const ONE: Felt
Sourcepub const NUM_BYTES: usize = Goldilocks::NUM_BYTES
pub const NUM_BYTES: usize = Goldilocks::NUM_BYTES
The number of bytes which this field element occupies in memory.
Sourcepub const fn new(value: u64) -> Felt
pub const fn new(value: u64) -> Felt
Creates a new field element from any u64.
Any u64 value is accepted. No reduction is performed since Goldilocks uses a
non-canonical internal representation.
pub fn from_u8(value: u8) -> Felt
pub fn from_u16(value: u16) -> Felt
pub fn from_u32(value: u32) -> Felt
Sourcepub fn exp_const_u64<const POWER: u64>(&self) -> Felt
pub fn exp_const_u64<const POWER: u64>(&self) -> Felt
Exponentiation by a small constant power.
Sourcepub fn as_canonical_u64(&self) -> u64
pub fn as_canonical_u64(&self) -> u64
Return the representative of element in canonical form which lies in the range
0 <= x < ORDER.
Methods from Deref<Target = Goldilocks>§
pub const TWO_ADIC_GENERATORS: [Goldilocks; 33]
Trait Implementations§
Source§impl AddAssign for Felt
impl AddAssign for Felt
Source§fn add_assign(&mut self, other: Felt)
fn add_assign(&mut self, other: Felt)
+= operation. Read moreSource§impl BinomiallyExtendable<2> for Felt
impl BinomiallyExtendable<2> for Felt
Source§impl BinomiallyExtendable<5> for Felt
impl BinomiallyExtendable<5> for Felt
Source§impl BinomiallyExtendableAlgebra<Felt, 2> for Felt
impl BinomiallyExtendableAlgebra<Felt, 2> for Felt
Source§fn binomial_mul(a: &[Self; D], b: &[Self; D], res: &mut [Self; D], w: F)
fn binomial_mul(a: &[Self; D], b: &[Self; D], res: &mut [Self; D], w: F)
A<X> / (X^D - W). Read moreSource§fn binomial_add(a: &[Self; D], b: &[Self; D]) -> [Self; D]
fn binomial_add(a: &[Self; D], b: &[Self; D]) -> [Self; D]
A<X> / (X^D - W). Read moreSource§fn binomial_sub(a: &[Self; D], b: &[Self; D]) -> [Self; D]
fn binomial_sub(a: &[Self; D], b: &[Self; D]) -> [Self; D]
A<X> / (X^D - W). Read morefn binomial_base_mul(lhs: [Self; D], rhs: Self) -> [Self; D]
Source§impl BinomiallyExtendableAlgebra<Felt, 5> for Felt
impl BinomiallyExtendableAlgebra<Felt, 5> for Felt
Source§fn binomial_mul(a: &[Self; D], b: &[Self; D], res: &mut [Self; D], w: F)
fn binomial_mul(a: &[Self; D], b: &[Self; D], res: &mut [Self; D], w: F)
A<X> / (X^D - W). Read moreSource§fn binomial_add(a: &[Self; D], b: &[Self; D]) -> [Self; D]
fn binomial_add(a: &[Self; D], b: &[Self; D]) -> [Self; D]
A<X> / (X^D - W). Read moreSource§fn binomial_sub(a: &[Self; D], b: &[Self; D]) -> [Self; D]
fn binomial_sub(a: &[Self; D], b: &[Self; D]) -> [Self; D]
A<X> / (X^D - W). Read morefn binomial_base_mul(lhs: [Self; D], rhs: Self) -> [Self; D]
Source§impl Deserializable for Felt
impl Deserializable for Felt
Source§fn read_from<R>(source: &mut R) -> Result<Felt, DeserializationError>where
R: ByteReader,
fn read_from<R>(source: &mut R) -> Result<Felt, DeserializationError>where
R: ByteReader,
source, attempts to deserialize these bytes
into Self, and returns the result. Read moreSource§fn min_serialized_size() -> usize
fn min_serialized_size() -> usize
Source§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
Source§fn read_from_bytes_with_budget(
bytes: &[u8],
budget: usize,
) -> Result<Self, DeserializationError>
fn read_from_bytes_with_budget( bytes: &[u8], budget: usize, ) -> Result<Self, DeserializationError>
Self from bytes with a byte budget limit. Read moreSource§impl<'de> Deserialize<'de> for Felt
impl<'de> Deserialize<'de> for Felt
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Felt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Felt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl DivAssign for Felt
impl DivAssign for Felt
Source§fn div_assign(&mut self, other: Felt)
fn div_assign(&mut self, other: Felt)
/= operation. Read moreSource§impl Field for Felt
impl Field for Felt
type Packing = Felt
Source§fn is_zero(&self) -> bool
fn is_zero(&self) -> bool
Source§fn try_inverse(&self) -> Option<Felt>
fn try_inverse(&self) -> Option<Felt>
Source§fn is_one(&self) -> bool
fn is_one(&self) -> bool
Source§fn add_slices(slice_1: &mut [Self], slice_2: &[Self])
fn add_slices(slice_1: &mut [Self], slice_2: &[Self])
Source§impl From<Felt> for Goldilocks
impl From<Felt> for Goldilocks
Source§fn from(value: Felt) -> Goldilocks
fn from(value: Felt) -> Goldilocks
Source§impl From<Goldilocks> for Felt
impl From<Goldilocks> for Felt
Source§fn from(value: Goldilocks) -> Felt
fn from(value: Goldilocks) -> Felt
Source§impl HasTwoAdicBinomialExtension<2> for Felt
impl HasTwoAdicBinomialExtension<2> for Felt
Source§impl HasTwoAdicBinomialExtension<5> for Felt
impl HasTwoAdicBinomialExtension<5> for Felt
Source§impl InjectiveMonomial<7> for Felt
impl InjectiveMonomial<7> for Felt
Source§fn injective_exp_n(&self) -> Self
fn injective_exp_n(&self) -> Self
x -> x^n for a given n > 1 such that this
map is injective.Source§impl MulAssign for Felt
impl MulAssign for Felt
Source§fn mul_assign(&mut self, other: Felt)
fn mul_assign(&mut self, other: Felt)
*= operation. Read moreSource§impl Ord for Felt
impl Ord for Felt
Source§impl PartialEq<Goldilocks> for Felt
impl PartialEq<Goldilocks> for Felt
Source§impl PartialOrd for Felt
impl PartialOrd for Felt
Source§impl PermutationMonomial<7> for Felt
impl PermutationMonomial<7> for Felt
Source§fn injective_exp_root_n(&self) -> Felt
fn injective_exp_root_n(&self) -> Felt
x -> x^K for a given K > 1 such that
x^{NK} = x for all elements x.Source§impl PrimeCharacteristicRing for Felt
impl PrimeCharacteristicRing for Felt
Source§type PrimeSubfield = Goldilocks
type PrimeSubfield = Goldilocks
ℤ/p where the characteristic of this ring is p.Source§fn from_prime_subfield(
f: <Felt as PrimeCharacteristicRing>::PrimeSubfield,
) -> Felt
fn from_prime_subfield( f: <Felt as PrimeCharacteristicRing>::PrimeSubfield, ) -> Felt
Source§fn mul_2exp_u64(&self, exp: u64) -> Felt
fn mul_2exp_u64(&self, exp: u64) -> Felt
mul_2exp_u64(a, exp) = a * 2^{exp}. Read moreSource§fn div_2exp_u64(&self, exp: u64) -> Felt
fn div_2exp_u64(&self, exp: u64) -> Felt
div_2exp_u64(a, exp) = a/2^exp Read moreSource§fn from_usize(int: usize) -> Self
fn from_usize(int: usize) -> Self
Source§fn from_isize(int: isize) -> Self
fn from_isize(int: isize) -> Self
Source§fn xor(&self, y: &Self) -> Self
fn xor(&self, y: &Self) -> Self
xor. Read moreSource§fn xor3(&self, y: &Self, z: &Self) -> Self
fn xor3(&self, y: &Self, z: &Self) -> Self
xor. Read moreSource§fn bool_check(&self) -> Self
fn bool_check(&self) -> Self
x * (x - 1). Read moreSource§fn exp_const_u64<const POWER: u64>(&self) -> Self
fn exp_const_u64<const POWER: u64>(&self) -> Self
Source§fn exp_power_of_2(&self, power_log: usize) -> Self
fn exp_power_of_2(&self, power_log: usize) -> Self
exp_power_of_2(a, power_log) = a^{2^power_log}. Read moreSource§fn powers(&self) -> Powers<Self>
fn powers(&self) -> Powers<Self>
self: self^0, self^1, self^2, ....Source§fn shifted_powers(&self, start: Self) -> Powers<Self>
fn shifted_powers(&self, start: Self) -> Powers<Self>
self shifted by start: start, start*self^1, start*self^2, ....Source§fn dot_product<const N: usize>(u: &[Self; N], v: &[Self; N]) -> Self
fn dot_product<const N: usize>(u: &[Self; N], v: &[Self; N]) -> Self
Source§fn sum_array<const N: usize>(input: &[Self]) -> Self
fn sum_array<const N: usize>(input: &[Self]) -> Self
Source§fn zero_vec(len: usize) -> Vec<Self>
fn zero_vec(len: usize) -> Vec<Self>
len. Many operating systems zero pages
before assigning them to a userspace process. In that case, our process should not need to
write zeros, which would be redundant. However, the compiler may not always recognize this. Read moreSource§impl PrimeField for Felt
impl PrimeField for Felt
Source§fn as_canonical_biguint(&self) -> BigUint
fn as_canonical_biguint(&self) -> BigUint
value in canonical form
which lies in the range 0 <= x < self.order().Source§impl PrimeField64 for Felt
impl PrimeField64 for Felt
const ORDER_U64: u64 = <Goldilocks as PrimeField64>::ORDER_U64
Source§fn as_canonical_u64(&self) -> u64
fn as_canonical_u64(&self) -> u64
value in canonical form
which lies in the range 0 <= x < ORDER_U64.Source§fn to_unique_u64(&self) -> u64
fn to_unique_u64(&self) -> u64
u64 such that any two field elements
are converted to the same u64 if and only if they represent the same value. Read moreSource§impl QuotientMap<i128> for Felt
impl QuotientMap<i128> for Felt
Source§fn from_int(int: i128) -> Felt
fn from_int(int: i128) -> Felt
Convert a given i128 integer into an element of the Felt field.
This checks the sign and then makes use of the equivalent method for unsigned integers. This should be avoided in performance critical locations.
Source§impl QuotientMap<i16> for Felt
impl QuotientMap<i16> for Felt
Source§fn from_int(int: i16) -> Felt
fn from_int(int: i16) -> Felt
Convert a given i16 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§fn from_canonical_checked(int: i16) -> Option<Felt>
fn from_canonical_checked(int: i16) -> Option<Felt>
Convert a given i16 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: i16) -> Felt
unsafe fn from_canonical_unchecked(int: i16) -> Felt
Convert a given i16 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§impl QuotientMap<i32> for Felt
impl QuotientMap<i32> for Felt
Source§fn from_int(int: i32) -> Felt
fn from_int(int: i32) -> Felt
Convert a given i32 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§fn from_canonical_checked(int: i32) -> Option<Felt>
fn from_canonical_checked(int: i32) -> Option<Felt>
Convert a given i32 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: i32) -> Felt
unsafe fn from_canonical_unchecked(int: i32) -> Felt
Convert a given i32 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§impl QuotientMap<i64> for Felt
impl QuotientMap<i64> for Felt
Source§impl QuotientMap<i8> for Felt
impl QuotientMap<i8> for Felt
Source§fn from_int(int: i8) -> Felt
fn from_int(int: i8) -> Felt
Convert a given i8 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§fn from_canonical_checked(int: i8) -> Option<Felt>
fn from_canonical_checked(int: i8) -> Option<Felt>
Convert a given i8 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: i8) -> Felt
unsafe fn from_canonical_unchecked(int: i8) -> Felt
Convert a given i8 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§impl QuotientMap<u128> for Felt
impl QuotientMap<u128> for Felt
Source§fn from_int(int: u128) -> Felt
fn from_int(int: u128) -> Felt
Convert a given u128 integer into an element of the Felt field.
Uses a modular reduction to reduce to canonical form. This should be avoided in performance critical locations.
Source§impl QuotientMap<u16> for Felt
impl QuotientMap<u16> for Felt
Source§fn from_int(int: u16) -> Felt
fn from_int(int: u16) -> Felt
Convert a given u16 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§fn from_canonical_checked(int: u16) -> Option<Felt>
fn from_canonical_checked(int: u16) -> Option<Felt>
Convert a given u16 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: u16) -> Felt
unsafe fn from_canonical_unchecked(int: u16) -> Felt
Convert a given u16 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§impl QuotientMap<u32> for Felt
impl QuotientMap<u32> for Felt
Source§fn from_int(int: u32) -> Felt
fn from_int(int: u32) -> Felt
Convert a given u32 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§fn from_canonical_checked(int: u32) -> Option<Felt>
fn from_canonical_checked(int: u32) -> Option<Felt>
Convert a given u32 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: u32) -> Felt
unsafe fn from_canonical_unchecked(int: u32) -> Felt
Convert a given u32 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§impl QuotientMap<u64> for Felt
impl QuotientMap<u64> for Felt
Source§impl QuotientMap<u8> for Felt
impl QuotientMap<u8> for Felt
Source§fn from_int(int: u8) -> Felt
fn from_int(int: u8) -> Felt
Convert a given u8 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§fn from_canonical_checked(int: u8) -> Option<Felt>
fn from_canonical_checked(int: u8) -> Option<Felt>
Convert a given u8 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: u8) -> Felt
unsafe fn from_canonical_unchecked(int: u8) -> Felt
Convert a given u8 integer into an element of the Felt field.
Due to the integer type, the input value is always canonical.
Source§impl Randomizable for Felt
impl Randomizable for Felt
Source§impl RawDataSerializable for Felt
impl RawDataSerializable for Felt
Source§const NUM_BYTES: usize = 8
const NUM_BYTES: usize = 8
Source§fn into_bytes(self) -> [u8; 8]
fn into_bytes(self) -> [u8; 8]
Source§fn into_u32_stream(
input: impl IntoIterator<Item = Felt>,
) -> impl IntoIterator<Item = u32>
fn into_u32_stream( input: impl IntoIterator<Item = Felt>, ) -> impl IntoIterator<Item = u32>
Source§fn into_u64_stream(
input: impl IntoIterator<Item = Felt>,
) -> impl IntoIterator<Item = u64>
fn into_u64_stream( input: impl IntoIterator<Item = Felt>, ) -> impl IntoIterator<Item = u64>
Source§fn into_parallel_byte_streams<const N: usize>(
input: impl IntoIterator<Item = [Felt; N]>,
) -> impl IntoIterator<Item = [u8; N]>
fn into_parallel_byte_streams<const N: usize>( input: impl IntoIterator<Item = [Felt; N]>, ) -> impl IntoIterator<Item = [u8; N]>
Source§fn into_parallel_u32_streams<const N: usize>(
input: impl IntoIterator<Item = [Felt; N]>,
) -> impl IntoIterator<Item = [u32; N]>
fn into_parallel_u32_streams<const N: usize>( input: impl IntoIterator<Item = [Felt; N]>, ) -> impl IntoIterator<Item = [u32; N]>
Source§fn into_parallel_u64_streams<const N: usize>(
input: impl IntoIterator<Item = [Felt; N]>,
) -> impl IntoIterator<Item = [u64; N]>
fn into_parallel_u64_streams<const N: usize>( input: impl IntoIterator<Item = [Felt; N]>, ) -> impl IntoIterator<Item = [u64; N]>
Source§fn into_byte_stream(
input: impl IntoIterator<Item = Self>,
) -> impl IntoIterator<Item = u8>
fn into_byte_stream( input: impl IntoIterator<Item = Self>, ) -> impl IntoIterator<Item = u8>
Source§impl Serializable for Felt
impl Serializable for Felt
Source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
self into bytes and writes these bytes into the target.Source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Source§impl Serialize for Felt
impl Serialize for Felt
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl SubAssign for Felt
impl SubAssign for Felt
Source§fn sub_assign(&mut self, other: Felt)
fn sub_assign(&mut self, other: Felt)
-= operation. Read moreSource§impl TwoAdicField for Felt
impl TwoAdicField for Felt
Source§const TWO_ADICITY: usize = <Goldilocks as TwoAdicField>::TWO_ADICITY
const TWO_ADICITY: usize = <Goldilocks as TwoAdicField>::TWO_ADICITY
Source§fn two_adic_generator(bits: usize) -> Felt
fn two_adic_generator(bits: usize) -> Felt
2^bits.
Assumes bits <= TWO_ADICITY, otherwise the result is undefined.Source§impl UniformSamplingField for Felt
impl UniformSamplingField for Felt
Source§const MAX_SINGLE_SAMPLE_BITS: usize = <Goldilocks as UniformSamplingField>::MAX_SINGLE_SAMPLE_BITS
const MAX_SINGLE_SAMPLE_BITS: usize = <Goldilocks as UniformSamplingField>::MAX_SINGLE_SAMPLE_BITS
impl Copy for Felt
impl Eq for Felt
impl Packable for Felt
Auto Trait Implementations§
impl Freeze for Felt
impl RefUnwindSafe for Felt
impl Send for Felt
impl Sync for Felt
impl Unpin for Felt
impl UnsafeUnpin for Felt
impl UnwindSafe for Felt
Blanket Implementations§
Source§impl<F> BasedVectorSpace<F> for Fwhere
F: PrimeCharacteristicRing,
impl<F> BasedVectorSpace<F> for Fwhere
F: PrimeCharacteristicRing,
Source§const DIMENSION: usize = 1
const DIMENSION: usize = 1
Source§fn as_basis_coefficients_slice(&self) -> &[F]
fn as_basis_coefficients_slice(&self) -> &[F]
A and uses this to
map an element of A to a slice of DIMENSION F elements. Read moreSource§fn from_basis_coefficients_fn<Fn>(f: Fn) -> F
fn from_basis_coefficients_fn<Fn>(f: Fn) -> F
A and uses this to
map DIMENSION F elements to an element of A. Similar
to core:array::from_fn, the DIMENSION F elements are
given by Fn(0), ..., Fn(DIMENSION - 1) called in that order. Read moreSource§fn from_basis_coefficients_iter<I>(iter: I) -> Option<F>where
I: ExactSizeIterator<Item = F>,
fn from_basis_coefficients_iter<I>(iter: I) -> Option<F>where
I: ExactSizeIterator<Item = F>,
A and uses this to
map DIMENSION F elements to an element of A. Read moreSource§fn flatten_to_base(vec: Vec<F>) -> Vec<F>
fn flatten_to_base(vec: Vec<F>) -> Vec<F>
Source§fn reconstitute_from_base(vec: Vec<F>) -> Vec<F>
fn reconstitute_from_base(vec: Vec<F>) -> Vec<F>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F> ExtensionField<F> for Fwhere
F: Field,
impl<F> ExtensionField<F> for Fwhere
F: Field,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read moreSource§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
Source§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
Source§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Source§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Source§impl<F> PackedField for Fwhere
F: Field,
impl<F> PackedField for Fwhere
F: Field,
type Scalar = F
Source§fn packed_powers(base: Self::Scalar) -> Powers<Self>
fn packed_powers(base: Self::Scalar) -> Powers<Self>
base packed into packed field elements. Read moreSource§impl<F> PackedFieldPow2 for Fwhere
F: Field,
impl<F> PackedFieldPow2 for Fwhere
F: Field,
Source§impl<T> PackedValue for Twhere
T: Packable,
impl<T> PackedValue for Twhere
T: Packable,
Source§fn from_slice(slice: &[<T as PackedValue>::Value]) -> &T
fn from_slice(slice: &[<T as PackedValue>::Value]) -> &T
Source§fn from_slice_mut(slice: &mut [<T as PackedValue>::Value]) -> &mut T
fn from_slice_mut(slice: &mut [<T as PackedValue>::Value]) -> &mut T
Source§fn from_fn<Fn>(f: Fn) -> T
fn from_fn<Fn>(f: Fn) -> T
Source§fn as_slice(&self) -> &[<T as PackedValue>::Value]
fn as_slice(&self) -> &[<T as PackedValue>::Value]
Source§fn as_slice_mut(&mut self) -> &mut [<T as PackedValue>::Value]
fn as_slice_mut(&mut self) -> &mut [<T as PackedValue>::Value]
Source§fn pack_slice(buf: &[Self::Value]) -> &[Self]
fn pack_slice(buf: &[Self::Value]) -> &[Self]
Source§fn pack_slice_with_suffix(buf: &[Self::Value]) -> (&[Self], &[Self::Value])
fn pack_slice_with_suffix(buf: &[Self::Value]) -> (&[Self], &[Self::Value])
Source§fn pack_slice_mut(buf: &mut [Self::Value]) -> &mut [Self]
fn pack_slice_mut(buf: &mut [Self::Value]) -> &mut [Self]
Source§fn pack_maybe_uninit_slice_mut(
buf: &mut [MaybeUninit<Self::Value>],
) -> &mut [MaybeUninit<Self>]
fn pack_maybe_uninit_slice_mut( buf: &mut [MaybeUninit<Self::Value>], ) -> &mut [MaybeUninit<Self>]
Source§fn pack_slice_with_suffix_mut(
buf: &mut [Self::Value],
) -> (&mut [Self], &mut [Self::Value])
fn pack_slice_with_suffix_mut( buf: &mut [Self::Value], ) -> (&mut [Self], &mut [Self::Value])
Source§fn pack_maybe_uninit_slice_with_suffix_mut(
buf: &mut [MaybeUninit<Self::Value>],
) -> (&mut [MaybeUninit<Self>], &mut [MaybeUninit<Self::Value>])
fn pack_maybe_uninit_slice_with_suffix_mut( buf: &mut [MaybeUninit<Self::Value>], ) -> (&mut [MaybeUninit<Self>], &mut [MaybeUninit<Self::Value>])
Source§fn unpack_slice(buf: &[Self]) -> &[Self::Value]
fn unpack_slice(buf: &[Self]) -> &[Self::Value]
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<F> QuotientMap<isize> for Fwhere
F: QuotientMap<i8> + QuotientMap<i16> + QuotientMap<i32> + QuotientMap<i64> + QuotientMap<i128>,
impl<F> QuotientMap<isize> for Fwhere
F: QuotientMap<i8> + QuotientMap<i16> + QuotientMap<i32> + QuotientMap<i64> + QuotientMap<i128>,
Source§fn from_int(int: isize) -> F
fn from_int(int: isize) -> F
We use the from_int method of the primitive integer type identical to isize on this machine
Source§fn from_canonical_checked(int: isize) -> Option<F>
fn from_canonical_checked(int: isize) -> Option<F>
We use the from_canonical_checked method of the primitive integer type identical to isize on this machine
Source§unsafe fn from_canonical_unchecked(int: isize) -> F
unsafe fn from_canonical_unchecked(int: isize) -> F
We use the from_canonical_unchecked method of the primitive integer type identical to isize on this machine
Source§impl<F> QuotientMap<usize> for Fwhere
F: QuotientMap<u8> + QuotientMap<u16> + QuotientMap<u32> + QuotientMap<u64> + QuotientMap<u128>,
impl<F> QuotientMap<usize> for Fwhere
F: QuotientMap<u8> + QuotientMap<u16> + QuotientMap<u32> + QuotientMap<u64> + QuotientMap<u128>,
Source§fn from_int(int: usize) -> F
fn from_int(int: usize) -> F
We use the from_int method of the primitive integer type identical to usize on this machine
Source§fn from_canonical_checked(int: usize) -> Option<F>
fn from_canonical_checked(int: usize) -> Option<F>
We use the from_canonical_checked method of the primitive integer type identical to usize on this machine
Source§unsafe fn from_canonical_unchecked(int: usize) -> F
unsafe fn from_canonical_unchecked(int: usize) -> F
We use the from_canonical_unchecked method of the primitive integer type identical to usize on this machine