diff --git a/ladderz/index.html b/ladderz/index.html index 2f6a49a..c8e42a4 100644 --- a/ladderz/index.html +++ b/ladderz/index.html @@ -1,6 +1,10 @@ -ladderz - Rust

Crate ladderz

source ·
Expand description

ladderz

+ladderz - Rust

Crate ladderz

source ·
Expand description

ladderz

Implementations of mathematical and technical concepts in Rust.

-

View the modules section for the various implementations based on the subject.

+

Subjects

+

The modules for currently supported subjects are:

+

Example

Here’s an example of using the ladderz crate to get the factors and factor pairs of a positive integer in sorted order. We’ll assume you’re using Bash as your terminal.

diff --git a/ladderz/pre_algebra/index.html b/ladderz/pre_algebra/index.html index b215e6a..089d797 100644 --- a/ladderz/pre_algebra/index.html +++ b/ladderz/pre_algebra/index.html @@ -1,2 +1,10 @@ ladderz::pre_algebra - Rust

Module ladderz::pre_algebra

source ·
Expand description

Various pre-algebra implementations including factor pairs, factors, multiples, and more.

-

Functions

  • Finds all factor pairs for a positive integer n.
  • Finds all factors of a positive integer n.
  • Finds all the multiples of a positive integer n up to and including end (in the range [n, end]).
  • Checks if a positive integer x is a factor of another positive integer y.
  • Checks if a positive integer x is a multiple of another positive integer y.
\ No newline at end of file +

Example

+
use ladderz::pre_algebra::get_factors;
+ 
+fn main() {
+    let x: u32 = 10;
+    println!("The factors of {x} are {:?}.", get_factors(x));
+}
+
The factors of 10 are {1, 5, 2, 10}.
+

Functions

  • Finds all factor pairs for a positive integer n.
  • Finds all factors of a positive integer n.
  • Finds all the multiples of a positive integer n up to and including end (in the range [n, end]).
  • Checks if a positive integer x is a factor of another positive integer y.
  • Checks if a positive integer x is a multiple of another positive integer y.
\ No newline at end of file diff --git a/src/ladderz/lib.rs.html b/src/ladderz/lib.rs.html index f650ec2..f475bfd 100644 --- a/src/ladderz/lib.rs.html +++ b/src/ladderz/lib.rs.html @@ -90,11 +90,35 @@ 90 91 92 +93 +94 +95 +96 +97 +98 +99 +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 +110 +111 +112
//! # ladderz
 //!
 //! Implementations of mathematical and technical concepts in Rust.
 //!
-//! View [the modules section](#modules) for the various implementations based on the subject.
+//! ## Subjects
+//!
+//! The modules for currently supported subjects are:
+//!
+//! - [`pre_algebra`]
 //!
 //! # Example
 //!
@@ -181,5 +205,21 @@
 //! Great! We've successfully used the `ladderz` crate to get the factors and factor pairs of a positive integer in sorted order.
 
 /// Various pre-algebra implementations including factor pairs, factors, multiples, and more.
+/// 
+/// # Example
+/// 
+/// ```rust
+/// use ladderz::pre_algebra::get_factors;
+/// 
+/// fn main() {
+///     let x: u32 = 10;
+///     println!("The factors of {x} are {:?}.", get_factors(x));
+/// }
+/// ```
+/// 
+/// ```console
+/// The factors of 10 are {1, 5, 2, 10}.
+/// ```
+/// 
 pub mod pre_algebra;
 
\ No newline at end of file