Struct gcd_bitwise::interface::GcdBuilder[][src]

pub struct GcdBuilder { /* fields omitted */ }

Implementations

Examples

use gcd_bitwise::interface::GcdBuilder;

fn main() {
    let num1 = 15;

    let num2 = 51;
     
    let gcd = GcdBuilder::new(num1, num2);
     
    let gcd = gcd.build();
     
    println!("gcd: {}", gcd); // 3   
}

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

Performs the conversion.

Performs the conversion.

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.