pub struct PallasCanvas {
    pub(crate) b: [u8; 32],
    pub(crate) sign: Sign,
    pub(crate) signed: bool,
}

Fields§

§b: [u8; 32]§sign: Sign§signed: bool

Implementations§

Returns 2 to the power of the argument

Gets the i-th least significant bit of this integer.

Produces a new integer which is all ones if the two arguments are equal and all zeroes otherwise. NOTE: This is not constant time but BigInt generally isn’t.

Produces a new integer which is all ones if the first argument is different from the second argument, and all zeroes otherwise. NOTE: This is not constant time but BigInt generally isn’t.

Produces a new integer which is all ones if the first argument is greater than or equal to the second argument, and all zeroes otherwise. NOTE: This is not constant time but BigInt generally isn’t.

Produces a new integer which is all ones if the first argument is strictly greater than the second argument, and all zeroes otherwise. NOTE: This is not constant time but BigInt generally isn’t.

Produces a new integer which is all ones if the first argument is less than or equal to the second argument, and all zeroes otherwise. NOTE: This is not constant time but BigInt generally isn’t.

Produces a new integer which is all ones if the first argument is strictly less than the second argument, and all zeroes otherwise. NOTE: This is not constant time but BigInt generally isn’t.

Returns self to the power of the argument. The exponent is a u128.

Trait Implementations§

Warning: panics on overflow.

The resulting type after applying the + operator.
Performs the + operation. Read more
The resulting type after applying the & operator.
Performs the & operation. Read more
The resulting type after applying the | operator.
Performs the | operation. Read more
The resulting type after applying the ^ operator.
Performs the ^ operation. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more

Warning: panics on division by 0.

The resulting type after applying the / operator.
Performs the / operation. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

Get bit i of this integer.

Set bit i of this integer to b and return the result. Bit b has to be 0 or 1.

Set bit pos of this integer to bit yi of integer y.

Get an integer with value val.
Read a hex string (starting with 0x) into an Integer.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Formats the value using the given formatter.

(self - rhs) % n.

(self + rhs) % n

(self * rhs) % n

(self ^ exp) % n

self % n

self % n that always returns a positive integer

|self|

Warning: panics on overflow.

The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the ! operator.
Performs the unary ! operation. Read more

Return largest value that can be represented.

self ^ exp where exp is a u32.

self ^ exp where exp is a Self.

Division.

Invert self modulo n.

This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Warning: panics on division by 0.

The resulting type after applying the % operator.
Performs the % operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more

Warning: panics on underflow.

The resulting type after applying the - operator.
Performs the - operation. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.