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

pub struct LimbsMut { /* fields omitted */ }

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

Methods

impl LimbsMut
[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.

impl LimbsMut
[src]

[src]

View the LimbsMut as a Limbs (an explicit *const Limb -> *mut Limb conversion)

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 LimbsMut
[src]

impl Clone for LimbsMut
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for LimbsMut
[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 LimbsMut
[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 LimbsMut
[src]

impl Ord for LimbsMut
[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 LimbsMut
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl DerefMut for LimbsMut
[src]

[src]

Mutably dereferences the value.