Struct ramp::ll::limb_ptr::Limbs [] [src]

pub struct Limbs { /* fields omitted */ }

A version of *const Limb that is bounds-checked when debug assertions are on

Methods

impl Limbs
[src]

[src]

Create a new instance, pointing at base and valid from base.offset(start) to base.offset(end).

[src]

Move self to point to the xth Limbs from the current location.

Methods from Deref<Target = Limb>

[src]

Returns the high half of the limb

[src]

Returns the low half of the limb

[src]

Performs self + other, returning the result and whether or not the addition overflowed

[src]

Performs self - other, returning the result and whether or not the subtraction overflowed

[src]

Performs self * other returning the lower half of the product

[src]

Performs self * other returning the higher half of the product

[src]

Performs self * other returning the two-limb result as (high, low).

[src]

[src]

Returns whether or not the highest bit in the limb is set.

Division algorithms often require the highest limb of the divisor to be d >= BASE/2.

[src]

Returns the number of leading zeros in the limb

[src]

Returns the number of trailing zeros in the limb

Trait Implementations

impl Copy for Limbs
[src]

impl Clone for Limbs
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Limbs
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Limbs
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl PartialOrd for Limbs
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Eq for Limbs
[src]

impl Ord for Limbs
[src]

[src]

This method returns an Ordering between self and other. Read more

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more

impl Deref for Limbs
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.