mirror of
https://github.com/rzmk/ladderz.git
synced 2025-12-19 06:59:25 +00:00
deploy: 47ee3c8e23
This commit is contained in:
parent
ca62bccf0f
commit
0c6484d2d0
69 changed files with 1247 additions and 185 deletions
|
|
@ -1 +1 @@
|
||||||
window.ALL_CRATES = ["ladderz"];
|
window.ALL_CRATES = ["ladderz","lz"];
|
||||||
|
|
@ -1 +1 @@
|
||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Documentation for Rustdoc"><title>Rustdoc help</title><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="./static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="./static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="./" data-static-root-path="./static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0 (cc66ad468 2023-10-03)" data-channel="1.73.0" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-1596385f77d47ef2.css" data-theme-dark-css="dark-0a43001d3fc2282c.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="./static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="./static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="./static.files/light-1596385f77d47ef2.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="./static.files/dark-0a43001d3fc2282c.css"><link rel="stylesheet" href="./static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="./static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="./static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="./static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="./ladderz/index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="./ladderz/index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location">Help</h2><div class="sidebar-elems"></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="./help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="./settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="./static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Rustdoc help</h1><span class="out-of-band"><a id="back" href="javascript:void(0)" onclick="history.back();">Back</a></span></div><noscript><section><p>You need to enable JavaScript to use keyboard commands or search.</p><p>For more information, browse the <a href="https://doc.rust-lang.org/rustdoc/">rustdoc handbook</a>.</p></section></noscript></section></div></main></body></html>
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Documentation for Rustdoc"><title>Help</title><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="./static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="./static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="./" data-static-root-path="./static.files/" data-current-crate="lz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="./static.files/storage-fec3eaa3851e447d.js"></script><script defer src="./static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="./static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="./static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="./static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="./static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod sys"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="./index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="./index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2><a href="./index.html">Rustdoc</a><span class="version">1.75.0</span></h2></div><div class="version">(82e1608df 2023-12-21)</div><h2 class="location">Help</h2><div class="sidebar-elems"></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="./help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="./settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="./static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Rustdoc help</h1><span class="out-of-band"><a id="back" href="javascript:void(0)" onclick="history.back();">Back</a></span></div><noscript><section><p>You need to enable JavaScript to use keyboard commands or search.</p><p>For more information, browse the <a href="https://doc.rust-lang.org/rustdoc/">rustdoc handbook</a>.</p></section></noscript></section></div></main></body></html>
|
||||||
|
|
@ -1 +1 @@
|
||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="List of all items in this crate"><title>List of all items in this crate</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0 (cc66ad468 2023-10-03)" data-channel="1.73.0" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-1596385f77d47ef2.css" data-theme-dark-css="dark-0a43001d3fc2282c.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../static.files/light-1596385f77d47ef2.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../static.files/dark-0a43001d3fc2282c.css"><link rel="stylesheet" href="../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="../ladderz/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../ladderz/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Crate ladderz</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#functions">Functions</a></li></ul></section></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><h1>List of all items</h1><h3 id="functions">Functions</h3><ul class="all-items"><li><a href="pre_algebra/fn.get_factor_pairs.html">pre_algebra::get_factor_pairs</a></li><li><a href="pre_algebra/fn.get_factors.html">pre_algebra::get_factors</a></li><li><a href="pre_algebra/fn.get_multiples_in_range.html">pre_algebra::get_multiples_in_range</a></li><li><a href="pre_algebra/fn.get_prime_factorization.html">pre_algebra::get_prime_factorization</a></li><li><a href="pre_algebra/fn.get_primes_in_range.html">pre_algebra::get_primes_in_range</a></li><li><a href="pre_algebra/fn.is_composite.html">pre_algebra::is_composite</a></li><li><a href="pre_algebra/fn.is_factor.html">pre_algebra::is_factor</a></li><li><a href="pre_algebra/fn.is_multiple.html">pre_algebra::is_multiple</a></li><li><a href="pre_algebra/fn.is_prime.html">pre_algebra::is_prime</a></li></ul></section></div></main></body></html>
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="List of all items in this crate"><title>List of all items in this crate</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod sys"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../ladderz/index.html">ladderz</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section><ul class="block"><li><a href="#functions">Functions</a></li></ul></section></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><h1>List of all items</h1><h3 id="functions">Functions</h3><ul class="all-items"><li><a href="prealgebra/fn.get_factor_pairs.html">prealgebra::get_factor_pairs</a></li><li><a href="prealgebra/fn.get_factors.html">prealgebra::get_factors</a></li><li><a href="prealgebra/fn.get_multiples_in_range.html">prealgebra::get_multiples_in_range</a></li><li><a href="prealgebra/fn.get_prime_factorization.html">prealgebra::get_prime_factorization</a></li><li><a href="prealgebra/fn.get_primes_in_range.html">prealgebra::get_primes_in_range</a></li><li><a href="prealgebra/fn.is_composite.html">prealgebra::is_composite</a></li><li><a href="prealgebra/fn.is_factor.html">prealgebra::is_factor</a></li><li><a href="prealgebra/fn.is_multiple.html">prealgebra::is_multiple</a></li><li><a href="prealgebra/fn.is_prime.html">prealgebra::is_prime</a></li></ul></section></div></main></body></html>
|
||||||
|
|
@ -1,15 +1,16 @@
|
||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="ladderz"><title>ladderz - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0 (cc66ad468 2023-10-03)" data-channel="1.73.0" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-1596385f77d47ef2.css" data-theme-dark-css="dark-0a43001d3fc2282c.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../static.files/light-1596385f77d47ef2.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../static.files/dark-0a43001d3fc2282c.css"><link rel="stylesheet" href="../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="../ladderz/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../ladderz/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Crate ladderz</a></h2><div class="sidebar-elems"><ul class="block"><li class="version">Version 0.1.0</li><li><a id="all-types" href="all.html">All Items</a></li></ul><section><ul class="block"><li><a href="#modules">Modules</a></li></ul></section></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Crate <a class="mod" href="#">ladderz</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/ladderz/lib.rs.html#1-45">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><h2 id="ladderz"><a href="#ladderz">ladderz</a></h2>
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="ladderz"><title>ladderz - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../ladderz/index.html">ladderz</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><ul class="block">
|
||||||
|
<li><a id="all-types" href="all.html">All Items</a></li></ul><section><ul class="block"><li><a href="#modules">Modules</a></li></ul></section></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Crate <a class="mod" href="#">ladderz</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/ladderz/lib.rs.html#1-45">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><h2 id="ladderz"><a href="#ladderz">ladderz</a></h2>
|
||||||
<p>Implementations of mathematical and technical concepts in Rust.</p>
|
<p>Implementations of mathematical and technical concepts in Rust.</p>
|
||||||
<h2 id="installing-the-crate"><a href="#installing-the-crate">Installing the crate</a></h2>
|
<h2 id="installation"><a href="#installation">Installation</a></h2>
|
||||||
<p>To add the crate to your project, add the following dependency under your <code>[dependencies]</code> section in your <code>Cargo.toml</code>:</p>
|
<p>To add the library crate to your project, add the following dependency under your <code>[dependencies]</code> section in your <code>Cargo.toml</code>:</p>
|
||||||
<div class="example-wrap"><pre class="language-toml"><code>ladderz = { git = "https://github.com/rzmk/ladderz", branch = "main" }
|
<div class="example-wrap"><pre class="language-toml"><code>ladderz = { git = "https://github.com/rzmk/ladderz", branch = "main" }
|
||||||
</code></pre></div><h2 id="example"><a href="#example">Example</a></h2>
|
</code></pre></div><h2 id="example"><a href="#example">Example</a></h2>
|
||||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>ladderz::pre_algebra::get_factors;
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>ladderz::prealgebra::get_factors;
|
||||||
|
|
||||||
<span class="kw">let </span>x: u32 = <span class="number">10</span>;
|
<span class="kw">let </span>x: u32 = <span class="number">10</span>;
|
||||||
<span class="macro">println!</span>(<span class="string">"The factors of {x} are {:?}."</span>, get_factors(x));</code></pre></div>
|
<span class="macro">println!</span>(<span class="string">"The factors of {x} are {:?}."</span>, get_factors(x));</code></pre></div>
|
||||||
<div class="example-wrap"><pre class="language-console"><code>The factors of 10 are {1, 5, 2, 10}.
|
<div class="example-wrap"><pre class="language-console"><code>The factors of 10 are {1, 5, 2, 10}.
|
||||||
</code></pre></div>
|
</code></pre></div>
|
||||||
<p>For a more detailed example of how to use the <code>ladderz</code> crate, please see the <a href="https://github.com/rzmk/ladderz#example">example on GitHub</a>.</p>
|
<p>For a more detailed example of how to use the <code>ladderz</code> crate, please see the <a href="https://github.com/rzmk/ladderz#library-example">library example on GitHub</a>.</p>
|
||||||
<p>Choose a module to view its available functions.</p>
|
<p>Choose a module to view its available functions.</p>
|
||||||
</div></details><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2><ul class="item-table"><li><div class="item-name"><a class="mod" href="pre_algebra/index.html" title="mod ladderz::pre_algebra">pre_algebra</a></div><div class="desc docblock-short">Various pre-algebra implementations including factor pairs, factors, multiples, and more.</div></li></ul></section></div></main></body></html>
|
</div></details><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2><ul class="item-table"><li><div class="item-name"><a class="mod" href="prealgebra/index.html" title="mod ladderz::prealgebra">prealgebra</a></div><div class="desc docblock-short">Various pre-algebra implementations including factor pairs, factors, multiples, and more.</div></li></ul></section></div></main></body></html>
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,11 +0,0 @@
|
||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Checks if a positive integer `n` is a composite number."><title>is_composite in ladderz::pre_algebra - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0 (cc66ad468 2023-10-03)" data-channel="1.73.0" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-1596385f77d47ef2.css" data-theme-dark-css="dark-0a43001d3fc2282c.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../static.files/light-1596385f77d47ef2.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../static.files/dark-0a43001d3fc2282c.css"><link rel="stylesheet" href="../../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="../../ladderz/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../ladderz/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In ladderz::pre_algebra</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">ladderz</a>::<wbr><a href="index.html">pre_algebra</a>::<wbr><a class="fn" href="#">is_composite</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/ladderz/pre_algebra.rs.html#186-193">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn is_composite(n: <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.bool.html">bool</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Checks if a positive integer <code>n</code> is a composite number.</p>
|
|
||||||
<p>A composite number is a positive integer that is evenly divisible
|
|
||||||
by a positive integer other than 1 and itself.</p>
|
|
||||||
<h2 id="examples"><a href="#examples">Examples</a></h2>
|
|
||||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>ladderz::pre_algebra::is_composite;
|
|
||||||
|
|
||||||
<span class="macro">assert!</span>(!is_composite(<span class="number">1</span>)); <span class="comment">// 1 is not a composite number
|
|
||||||
</span><span class="macro">assert!</span>(!is_composite(<span class="number">2</span>)); <span class="comment">// 2 is not a composite number
|
|
||||||
</span><span class="macro">assert!</span>(is_composite(<span class="number">4</span>)); <span class="comment">// 4 is a composite number
|
|
||||||
</span><span class="macro">assert!</span>(!is_composite(<span class="number">7</span>)); <span class="comment">// 7 is not a composite number</span></code></pre></div>
|
|
||||||
</div></details></section></div></main></body></html>
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,14 +0,0 @@
|
||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Checks if a positive integer `n` is a prime number."><title>is_prime in ladderz::pre_algebra - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0 (cc66ad468 2023-10-03)" data-channel="1.73.0" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-1596385f77d47ef2.css" data-theme-dark-css="dark-0a43001d3fc2282c.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../static.files/light-1596385f77d47ef2.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../static.files/dark-0a43001d3fc2282c.css"><link rel="stylesheet" href="../../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="../../ladderz/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../ladderz/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In ladderz::pre_algebra</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">ladderz</a>::<wbr><a href="index.html">pre_algebra</a>::<wbr><a class="fn" href="#">is_prime</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/ladderz/pre_algebra.rs.html#159-169">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn is_prime(n: <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.bool.html">bool</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Checks if a positive integer <code>n</code> is a prime number.</p>
|
|
||||||
<p>A prime number is a positive integer greater than 1 that is
|
|
||||||
not evenly divisible by any positive integer other than 1 and itself.</p>
|
|
||||||
<h2 id="examples"><a href="#examples">Examples</a></h2>
|
|
||||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>ladderz::pre_algebra::is_prime;
|
|
||||||
|
|
||||||
<span class="macro">assert!</span>(!is_prime(<span class="number">1</span>)); <span class="comment">// 1 is not a prime number
|
|
||||||
</span><span class="macro">assert!</span>(is_prime(<span class="number">2</span>)); <span class="comment">// 2 is a prime number
|
|
||||||
</span><span class="macro">assert!</span>(!is_prime(<span class="number">4</span>)); <span class="comment">// 4 is not a prime number
|
|
||||||
</span><span class="macro">assert!</span>(is_prime(<span class="number">7</span>)); <span class="comment">// 7 is a prime number</span></code></pre></div>
|
|
||||||
<h2 id="note"><a href="#note">Note</a></h2>
|
|
||||||
<p>This function returns <code>false</code> for values of <code>n</code> less than 2 because, by definition, prime
|
|
||||||
numbers must be greater than 1.</p>
|
|
||||||
</div></details></section></div></main></body></html>
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Various pre-algebra implementations including factor pairs, factors, multiples, and more."><title>ladderz::pre_algebra - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0 (cc66ad468 2023-10-03)" data-channel="1.73.0" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-1596385f77d47ef2.css" data-theme-dark-css="dark-0a43001d3fc2282c.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="../../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../static.files/light-1596385f77d47ef2.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../static.files/dark-0a43001d3fc2282c.css"><link rel="stylesheet" href="../../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="../../ladderz/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../ladderz/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Module pre_algebra</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#functions">Functions</a></li></ul></section></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">ladderz</a>::<wbr><a class="mod" href="#">pre_algebra</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/ladderz/pre_algebra.rs.html#1-383">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Various pre-algebra implementations including factor pairs, factors, multiples, and more.</p>
|
|
||||||
<h2 id="example"><a href="#example">Example</a></h2>
|
|
||||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>ladderz::pre_algebra::get_factors;
|
|
||||||
|
|
||||||
<span class="kw">let </span>x: u32 = <span class="number">10</span>;
|
|
||||||
<span class="macro">println!</span>(<span class="string">"The factors of {x} are {:?}."</span>, get_factors(x));</code></pre></div>
|
|
||||||
<div class="example-wrap"><pre class="language-console"><code>The factors of 10 are {1, 5, 2, 10}.
|
|
||||||
</code></pre></div></div></details><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.get_factor_pairs.html" title="fn ladderz::pre_algebra::get_factor_pairs">get_factor_pairs</a></div><div class="desc docblock-short">Finds all factor pairs for a positive integer <code>n</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.get_factors.html" title="fn ladderz::pre_algebra::get_factors">get_factors</a></div><div class="desc docblock-short">Finds all factors of a positive integer <code>n</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.get_multiples_in_range.html" title="fn ladderz::pre_algebra::get_multiples_in_range">get_multiples_in_range</a></div><div class="desc docblock-short">Finds all the multiples of a positive integer <code>n</code> up to and including <code>end</code> (in the range [n, end]).</div></li><li><div class="item-name"><a class="fn" href="fn.get_prime_factorization.html" title="fn ladderz::pre_algebra::get_prime_factorization">get_prime_factorization</a></div><div class="desc docblock-short">Returns the prime factorization of a positive integer <code>n</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.get_primes_in_range.html" title="fn ladderz::pre_algebra::get_primes_in_range">get_primes_in_range</a></div><div class="desc docblock-short">Returns all prime numbers in the range [start, end].</div></li><li><div class="item-name"><a class="fn" href="fn.is_composite.html" title="fn ladderz::pre_algebra::is_composite">is_composite</a></div><div class="desc docblock-short">Checks if a positive integer <code>n</code> is a composite number.</div></li><li><div class="item-name"><a class="fn" href="fn.is_factor.html" title="fn ladderz::pre_algebra::is_factor">is_factor</a></div><div class="desc docblock-short">Checks if a positive integer <code>x</code> is a factor of another positive integer <code>y</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.is_multiple.html" title="fn ladderz::pre_algebra::is_multiple">is_multiple</a></div><div class="desc docblock-short">Checks if a positive integer <code>x</code> is a multiple of another positive integer <code>y</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.is_prime.html" title="fn ladderz::pre_algebra::is_prime">is_prime</a></div><div class="desc docblock-short">Checks if a positive integer <code>n</code> is a prime number.</div></li></ul></section></div></main></body></html>
|
|
||||||
18
ladderz/prealgebra/fn.get_factor_pairs.html
Normal file
18
ladderz/prealgebra/fn.get_factor_pairs.html
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Finds all factor pairs for a positive integer `n`."><title>get_factor_pairs in ladderz::prealgebra - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../ladderz/index.html">ladderz</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In ladderz::prealgebra</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">ladderz</a>::<wbr><a href="index.html">prealgebra</a>::<wbr><a class="fn" href="#">get_factor_pairs</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/ladderz/prealgebra.rs.html#28-42">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn get_factor_pairs(n: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.75.0/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a><(<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>)></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Finds all factor pairs for a positive integer <code>n</code>.</p>
|
||||||
|
<p>A factor pair is a pair of positive integers
|
||||||
|
<code>(a, b)</code> where <code>a</code> and <code>b</code> are both factors of <code>n</code> (i.e., <code>a * b == n</code>).</p>
|
||||||
|
<p>This function calculates and returns a <code>HashSet<(u32, u32)></code> containing all unique factor pairs
|
||||||
|
of the input positive integer <code>n</code>.</p>
|
||||||
|
<h2 id="examples"><a href="#examples">Examples</a></h2>
|
||||||
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>std::collections::HashSet;
|
||||||
|
<span class="kw">use </span>ladderz::prealgebra::get_factor_pairs;
|
||||||
|
|
||||||
|
<span class="kw">let </span>result_pairs = get_factor_pairs(<span class="number">12</span>);
|
||||||
|
<span class="kw">let </span>expected_pairs: HashSet<(u32, u32)> = [(<span class="number">1</span>, <span class="number">12</span>), (<span class="number">2</span>, <span class="number">6</span>), (<span class="number">3</span>, <span class="number">4</span>)].into();
|
||||||
|
<span class="macro">assert_eq!</span>(result_pairs, expected_pairs);</code></pre></div>
|
||||||
|
<h2 id="note"><a href="#note">Note</a></h2>
|
||||||
|
<p>This function calculates factor pairs by iterating through positive integers from 1 to <code>n</code>
|
||||||
|
(inclusive) and checking if they divide <code>n</code> evenly. If they do, a factor pair <code>(a, b)</code> is
|
||||||
|
added to the <code>HashSet</code>. The function ensures that factor pairs are unique, so <code>(a, b)</code> and
|
||||||
|
<code>(b, a)</code> will not both appear in the set.</p>
|
||||||
|
</div></details></section></div></main></body></html>
|
||||||
17
ladderz/prealgebra/fn.get_factors.html
Normal file
17
ladderz/prealgebra/fn.get_factors.html
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Finds all factors of a positive integer `n`."><title>get_factors in ladderz::prealgebra - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../ladderz/index.html">ladderz</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In ladderz::prealgebra</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">ladderz</a>::<wbr><a href="index.html">prealgebra</a>::<wbr><a class="fn" href="#">get_factors</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/ladderz/prealgebra.rs.html#68-77">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn get_factors(n: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.75.0/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Finds all factors of a positive integer <code>n</code>.</p>
|
||||||
|
<p>A factor of <code>n</code> is a positive integer <code>a</code> where
|
||||||
|
<code>n</code> is evenly divisible by <code>a</code> (i.e., <code>n % a == 0</code>).</p>
|
||||||
|
<p>This function calculates and returns a <code>HashSet<u32></code> containing all unique factors
|
||||||
|
of the input positive integer <code>n</code>.</p>
|
||||||
|
<h2 id="examples"><a href="#examples">Examples</a></h2>
|
||||||
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>std::collections::HashSet;
|
||||||
|
<span class="kw">use </span>ladderz::prealgebra::get_factors;
|
||||||
|
|
||||||
|
<span class="kw">let </span>result_factors = get_factors(<span class="number">16</span>);
|
||||||
|
<span class="kw">let </span>expected_factors: HashSet<u32> = [<span class="number">1</span>, <span class="number">2</span>, <span class="number">4</span>, <span class="number">8</span>, <span class="number">16</span>].into();
|
||||||
|
<span class="macro">assert_eq!</span>(result_factors, expected_factors);</code></pre></div>
|
||||||
|
<h2 id="note"><a href="#note">Note</a></h2>
|
||||||
|
<p>This function calculates factors by iterating through positive integers from 1 to <code>n</code>
|
||||||
|
(inclusive) and checking if they divide <code>n</code> evenly. If they do, the factor is added to
|
||||||
|
the <code>HashSet</code>. The function ensures that factors are unique, so duplicates are not added.</p>
|
||||||
|
</div></details></section></div></main></body></html>
|
||||||
10
ladderz/prealgebra/fn.get_multiples_in_range.html
Normal file
10
ladderz/prealgebra/fn.get_multiples_in_range.html
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Finds all the multiples of a positive integer `n` up to and including `end` (in the range [n, end])."><title>get_multiples_in_range in ladderz::prealgebra - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../ladderz/index.html">ladderz</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In ladderz::prealgebra</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">ladderz</a>::<wbr><a href="index.html">prealgebra</a>::<wbr><a class="fn" href="#">get_multiples_in_range</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/ladderz/prealgebra.rs.html#130-137">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn get_multiples_in_range(n: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>, end: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.75.0/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Finds all the multiples of a positive integer <code>n</code> up to and including <code>end</code> (in the range [n, end]).</p>
|
||||||
|
<p>A multiple of <code>n</code> is a positive integer <code>num</code> where <code>num</code> is evenly divisible by <code>n</code> (i.e., <code>num % n == 0</code>).</p>
|
||||||
|
<h2 id="examples"><a href="#examples">Examples</a></h2>
|
||||||
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>ladderz::prealgebra::get_multiples_in_range;
|
||||||
|
<span class="kw">use </span>std::collections::HashSet;
|
||||||
|
|
||||||
|
<span class="kw">let </span>result: HashSet<u32> = get_multiples_in_range(<span class="number">2</span>, <span class="number">10</span>);
|
||||||
|
<span class="kw">let </span>expected: HashSet<u32> = [<span class="number">2</span>, <span class="number">4</span>, <span class="number">6</span>, <span class="number">8</span>, <span class="number">10</span>].into();
|
||||||
|
<span class="macro">assert_eq!</span>(result, expected);</code></pre></div>
|
||||||
|
</div></details></section></div></main></body></html>
|
||||||
11
ladderz/prealgebra/fn.get_prime_factorization.html
Normal file
11
ladderz/prealgebra/fn.get_prime_factorization.html
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Returns the prime factorization of a positive integer `n`."><title>get_prime_factorization in ladderz::prealgebra - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../ladderz/index.html">ladderz</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In ladderz::prealgebra</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">ladderz</a>::<wbr><a href="index.html">prealgebra</a>::<wbr><a class="fn" href="#">get_prime_factorization</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/ladderz/prealgebra.rs.html#236-255">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn get_prime_factorization(n: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.75.0/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the prime factorization of a positive integer <code>n</code>.</p>
|
||||||
|
<p>For example the prime factorization of 12 is 2<sup>2</sup> * 3<sup>1</sup>, and the output is a HashMap of the form
|
||||||
|
<code>[(2, 2), (3, 1)]</code> where the first element of each tuple is the prime factor and the second element is the exponent.</p>
|
||||||
|
<h2 id="examples"><a href="#examples">Examples</a></h2>
|
||||||
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>ladderz::prealgebra::get_prime_factorization;
|
||||||
|
<span class="kw">use </span>std::collections::HashMap;
|
||||||
|
|
||||||
|
<span class="kw">let </span>result: HashMap<u32, u32> = get_prime_factorization(<span class="number">12</span>);
|
||||||
|
<span class="kw">let </span>expected: HashMap<u32, u32> = [(<span class="number">2</span>, <span class="number">2</span>), (<span class="number">3</span>, <span class="number">1</span>)].into();
|
||||||
|
<span class="macro">assert_eq!</span>(result, expected);</code></pre></div>
|
||||||
|
</div></details></section></div></main></body></html>
|
||||||
11
ladderz/prealgebra/fn.get_primes_in_range.html
Normal file
11
ladderz/prealgebra/fn.get_primes_in_range.html
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Returns all prime numbers in the range [start, end]."><title>get_primes_in_range in ladderz::prealgebra - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../ladderz/index.html">ladderz</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In ladderz::prealgebra</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">ladderz</a>::<wbr><a href="index.html">prealgebra</a>::<wbr><a class="fn" href="#">get_primes_in_range</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/ladderz/prealgebra.rs.html#210-219">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn get_primes_in_range(start: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>, end: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.75.0/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns all prime numbers in the range [start, end].</p>
|
||||||
|
<p>A prime number is a positive integer greater than 1 that is
|
||||||
|
not evenly divisible by any positive integer other than 1 and itself.</p>
|
||||||
|
<h2 id="examples"><a href="#examples">Examples</a></h2>
|
||||||
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>ladderz::prealgebra::get_primes_in_range;
|
||||||
|
<span class="kw">use </span>std::collections::HashSet;
|
||||||
|
|
||||||
|
<span class="kw">let </span>result: HashSet<u32> = get_primes_in_range(<span class="number">2</span>, <span class="number">10</span>);
|
||||||
|
<span class="kw">let </span>expected: HashSet<u32> = [<span class="number">2</span>, <span class="number">3</span>, <span class="number">5</span>, <span class="number">7</span>].into();
|
||||||
|
<span class="macro">assert_eq!</span>(result, expected);</code></pre></div>
|
||||||
|
</div></details></section></div></main></body></html>
|
||||||
11
ladderz/prealgebra/fn.is_composite.html
Normal file
11
ladderz/prealgebra/fn.is_composite.html
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Checks if a positive integer `n` is a composite number."><title>is_composite in ladderz::prealgebra - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../ladderz/index.html">ladderz</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In ladderz::prealgebra</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">ladderz</a>::<wbr><a href="index.html">prealgebra</a>::<wbr><a class="fn" href="#">is_composite</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/ladderz/prealgebra.rs.html#186-193">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn is_composite(n: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.bool.html">bool</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Checks if a positive integer <code>n</code> is a composite number.</p>
|
||||||
|
<p>A composite number is a positive integer that is evenly divisible
|
||||||
|
by a positive integer other than 1 and itself.</p>
|
||||||
|
<h2 id="examples"><a href="#examples">Examples</a></h2>
|
||||||
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>ladderz::prealgebra::is_composite;
|
||||||
|
|
||||||
|
<span class="macro">assert!</span>(!is_composite(<span class="number">1</span>)); <span class="comment">// 1 is not a composite number
|
||||||
|
</span><span class="macro">assert!</span>(!is_composite(<span class="number">2</span>)); <span class="comment">// 2 is not a composite number
|
||||||
|
</span><span class="macro">assert!</span>(is_composite(<span class="number">4</span>)); <span class="comment">// 4 is a composite number
|
||||||
|
</span><span class="macro">assert!</span>(!is_composite(<span class="number">7</span>)); <span class="comment">// 7 is not a composite number</span></code></pre></div>
|
||||||
|
</div></details></section></div></main></body></html>
|
||||||
11
ladderz/prealgebra/fn.is_factor.html
Normal file
11
ladderz/prealgebra/fn.is_factor.html
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Checks if a positive integer `x` is a factor of another positive integer `y`."><title>is_factor in ladderz::prealgebra - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../ladderz/index.html">ladderz</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In ladderz::prealgebra</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">ladderz</a>::<wbr><a href="index.html">prealgebra</a>::<wbr><a class="fn" href="#">is_factor</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/ladderz/prealgebra.rs.html#96-98">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn is_factor(x: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.bool.html">bool</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Checks if a positive integer <code>x</code> is a factor of another positive integer <code>y</code>.</p>
|
||||||
|
<p>A factor of <code>y</code> is a positive integer <code>x</code> where <code>y</code> is evenly divisible by <code>x</code> (i.e., <code>y % x == 0</code>).</p>
|
||||||
|
<h2 id="examples"><a href="#examples">Examples</a></h2>
|
||||||
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>ladderz::prealgebra::is_factor;
|
||||||
|
|
||||||
|
<span class="macro">assert!</span>(is_factor(<span class="number">2</span>, <span class="number">16</span>)); <span class="comment">// 2 is a factor of 16
|
||||||
|
</span><span class="macro">assert!</span>(!is_factor(<span class="number">3</span>, <span class="number">16</span>)); <span class="comment">// 3 is not a factor of 16</span></code></pre></div>
|
||||||
|
<h2 id="note"><a href="#note">Note</a></h2>
|
||||||
|
<p>This function determines if <code>x</code> is a factor of <code>y</code> by checking if <code>y</code> is evenly divisible by <code>x</code>
|
||||||
|
(i.e., <code>y % x == 0</code>).</p>
|
||||||
|
</div></details></section></div></main></body></html>
|
||||||
8
ladderz/prealgebra/fn.is_multiple.html
Normal file
8
ladderz/prealgebra/fn.is_multiple.html
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Checks if a positive integer `x` is a multiple of another positive integer `y`."><title>is_multiple in ladderz::prealgebra - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../ladderz/index.html">ladderz</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In ladderz::prealgebra</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">ladderz</a>::<wbr><a href="index.html">prealgebra</a>::<wbr><a class="fn" href="#">is_multiple</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/ladderz/prealgebra.rs.html#112-114">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn is_multiple(x: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.bool.html">bool</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Checks if a positive integer <code>x</code> is a multiple of another positive integer <code>y</code>.</p>
|
||||||
|
<p>A multiple of <code>y</code> is a positive integer <code>x</code> where <code>x</code> is evenly divisible by <code>y</code> (i.e., <code>x % y == 0</code>).</p>
|
||||||
|
<h2 id="examples"><a href="#examples">Examples</a></h2>
|
||||||
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>ladderz::prealgebra::is_multiple;
|
||||||
|
|
||||||
|
<span class="macro">assert!</span>(is_multiple(<span class="number">16</span>, <span class="number">2</span>)); <span class="comment">// 16 is a multiple of 2
|
||||||
|
</span><span class="macro">assert!</span>(!is_multiple(<span class="number">16</span>, <span class="number">3</span>)); <span class="comment">// 16 is not a multiple of 3</span></code></pre></div>
|
||||||
|
</div></details></section></div></main></body></html>
|
||||||
14
ladderz/prealgebra/fn.is_prime.html
Normal file
14
ladderz/prealgebra/fn.is_prime.html
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Checks if a positive integer `n` is a prime number."><title>is_prime in ladderz::prealgebra - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../ladderz/index.html">ladderz</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In ladderz::prealgebra</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">ladderz</a>::<wbr><a href="index.html">prealgebra</a>::<wbr><a class="fn" href="#">is_prime</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/ladderz/prealgebra.rs.html#159-169">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn is_prime(n: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.bool.html">bool</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Checks if a positive integer <code>n</code> is a prime number.</p>
|
||||||
|
<p>A prime number is a positive integer greater than 1 that is
|
||||||
|
not evenly divisible by any positive integer other than 1 and itself.</p>
|
||||||
|
<h2 id="examples"><a href="#examples">Examples</a></h2>
|
||||||
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>ladderz::prealgebra::is_prime;
|
||||||
|
|
||||||
|
<span class="macro">assert!</span>(!is_prime(<span class="number">1</span>)); <span class="comment">// 1 is not a prime number
|
||||||
|
</span><span class="macro">assert!</span>(is_prime(<span class="number">2</span>)); <span class="comment">// 2 is a prime number
|
||||||
|
</span><span class="macro">assert!</span>(!is_prime(<span class="number">4</span>)); <span class="comment">// 4 is not a prime number
|
||||||
|
</span><span class="macro">assert!</span>(is_prime(<span class="number">7</span>)); <span class="comment">// 7 is a prime number</span></code></pre></div>
|
||||||
|
<h2 id="note"><a href="#note">Note</a></h2>
|
||||||
|
<p>This function returns <code>false</code> for values of <code>n</code> less than 2 because, by definition, prime
|
||||||
|
numbers must be greater than 1.</p>
|
||||||
|
</div></details></section></div></main></body></html>
|
||||||
8
ladderz/prealgebra/index.html
Normal file
8
ladderz/prealgebra/index.html
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Various pre-algebra implementations including factor pairs, factors, multiples, and more."><title>ladderz::prealgebra - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../ladderz/index.html">ladderz</a><span class="version">0.1.0</span></h2></div><h2 class="location"><a href="#">Module prealgebra</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#functions">Functions</a></li></ul></section><h2><a href="../index.html">In crate ladderz</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">ladderz</a>::<wbr><a class="mod" href="#">prealgebra</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/ladderz/prealgebra.rs.html#1-383">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Various pre-algebra implementations including factor pairs, factors, multiples, and more.</p>
|
||||||
|
<h2 id="example"><a href="#example">Example</a></h2>
|
||||||
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>ladderz::prealgebra::get_factors;
|
||||||
|
|
||||||
|
<span class="kw">let </span>x: u32 = <span class="number">10</span>;
|
||||||
|
<span class="macro">println!</span>(<span class="string">"The factors of {x} are {:?}."</span>, get_factors(x));</code></pre></div>
|
||||||
|
<div class="example-wrap"><pre class="language-console"><code>The factors of 10 are {1, 5, 2, 10}.
|
||||||
|
</code></pre></div></div></details><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.get_factor_pairs.html" title="fn ladderz::prealgebra::get_factor_pairs">get_factor_pairs</a></div><div class="desc docblock-short">Finds all factor pairs for a positive integer <code>n</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.get_factors.html" title="fn ladderz::prealgebra::get_factors">get_factors</a></div><div class="desc docblock-short">Finds all factors of a positive integer <code>n</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.get_multiples_in_range.html" title="fn ladderz::prealgebra::get_multiples_in_range">get_multiples_in_range</a></div><div class="desc docblock-short">Finds all the multiples of a positive integer <code>n</code> up to and including <code>end</code> (in the range [n, end]).</div></li><li><div class="item-name"><a class="fn" href="fn.get_prime_factorization.html" title="fn ladderz::prealgebra::get_prime_factorization">get_prime_factorization</a></div><div class="desc docblock-short">Returns the prime factorization of a positive integer <code>n</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.get_primes_in_range.html" title="fn ladderz::prealgebra::get_primes_in_range">get_primes_in_range</a></div><div class="desc docblock-short">Returns all prime numbers in the range [start, end].</div></li><li><div class="item-name"><a class="fn" href="fn.is_composite.html" title="fn ladderz::prealgebra::is_composite">is_composite</a></div><div class="desc docblock-short">Checks if a positive integer <code>n</code> is a composite number.</div></li><li><div class="item-name"><a class="fn" href="fn.is_factor.html" title="fn ladderz::prealgebra::is_factor">is_factor</a></div><div class="desc docblock-short">Checks if a positive integer <code>x</code> is a factor of another positive integer <code>y</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.is_multiple.html" title="fn ladderz::prealgebra::is_multiple">is_multiple</a></div><div class="desc docblock-short">Checks if a positive integer <code>x</code> is a multiple of another positive integer <code>y</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.is_prime.html" title="fn ladderz::prealgebra::is_prime">is_prime</a></div><div class="desc docblock-short">Checks if a positive integer <code>n</code> is a prime number.</div></li></ul></section></div></main></body></html>
|
||||||
|
|
@ -1 +1 @@
|
||||||
window.SIDEBAR_ITEMS = {"mod":["pre_algebra"]};
|
window.SIDEBAR_ITEMS = {"mod":["prealgebra"]};
|
||||||
1
lz/all.html
Normal file
1
lz/all.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="List of all items in this crate"><title>List of all items in this crate</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="lz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod sys"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../lz/index.html">lz</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></section></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><h1>List of all items</h1><h3 id="structs">Structs</h3><ul class="all-items"><li><a href="struct.Cli.html">Cli</a></li></ul><h3 id="enums">Enums</h3><ul class="all-items"><li><a href="enum.Subjects.html">Subjects</a></li><li><a href="prealgebra/enum.Prealgebra.html">prealgebra::Prealgebra</a></li></ul><h3 id="functions">Functions</h3><ul class="all-items"><li><a href="fn.main.html">main</a></li><li><a href="prealgebra/fn.match_prealgebra.html">prealgebra::match_prealgebra</a></li></ul></section></div></main></body></html>
|
||||||
25
lz/enum.Subjects.html
Normal file
25
lz/enum.Subjects.html
Normal file
File diff suppressed because one or more lines are too long
1
lz/fn.main.html
Normal file
1
lz/fn.main.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `main` fn in crate `lz`."><title>main in lz - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="lz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../lz/index.html">lz</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="index.html">lz</a>::<wbr><a class="fn" href="#">main</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/lz/main.rs.html#61-71">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub(crate) fn main()</code></pre></section></div></main></body></html>
|
||||||
14
lz/index.html
Normal file
14
lz/index.html
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="lz"><title>lz - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="lz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../lz/index.html">lz</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><ul class="block">
|
||||||
|
<li><a id="all-types" href="all.html">All Items</a></li></ul><section><ul class="block"><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></section></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Crate <a class="mod" href="#">lz</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/lz/main.rs.html#1-71">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><h2 id="lz"><a href="#lz">lz</a></h2>
|
||||||
|
<p>A command-line interface for various math/tech subjects. Based on the <a href="https://github.com/rzmk/ladderz">ladderz</a> library.</p>
|
||||||
|
<h2 id="installation"><a href="#installation">Installation</a></h2>
|
||||||
|
<p>To install the command-line interface, run the following command in your terminal:</p>
|
||||||
|
<div class="example-wrap"><pre class="language-bash"><code>cargo install --git https://github.com/rzmk/ladderz --branch main
|
||||||
|
</code></pre></div><h2 id="example"><a href="#example">Example</a></h2><div class="example-wrap"><pre class="language-bash"><code>lz prealgebra is-factor 3 12
|
||||||
|
</code></pre></div><div class="example-wrap"><pre class="language-console"><code>3 is a factor of 12.
|
||||||
|
</code></pre></div>
|
||||||
|
<p>You may view the help menu for a subject and a function by running the command with the <code>-h</code> or <code>--help</code> flag:</p>
|
||||||
|
<div class="example-wrap"><pre class="language-bash"><code>lz prealgebra is-factor -h
|
||||||
|
</code></pre></div>
|
||||||
|
<p>Learn more on <a href="https://github.com/rzmk/ladderz">GitHub</a>.</p>
|
||||||
|
</div></details><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2><ul class="item-table"><li><div class="item-name"><a class="mod" href="prealgebra/index.html" title="mod lz::prealgebra">prealgebra</a></div></li></ul><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Cli.html" title="struct lz::Cli">Cli</a><span title="Restricted Visibility"> 🔒</span> </div></li></ul><h2 id="enums" class="small-section-header"><a href="#enums">Enums</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.Subjects.html" title="enum lz::Subjects">Subjects</a><span title="Restricted Visibility"> 🔒</span> </div><div class="desc docblock-short">The subjects that can be used.</div></li></ul><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.main.html" title="fn lz::main">main</a><span title="Restricted Visibility"> 🔒</span> </div></li></ul></section></div></main></body></html>
|
||||||
118
lz/prealgebra/enum.Prealgebra.html
Normal file
118
lz/prealgebra/enum.Prealgebra.html
Normal file
File diff suppressed because one or more lines are too long
1
lz/prealgebra/fn.match_prealgebra.html
Normal file
1
lz/prealgebra/fn.match_prealgebra.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `match_prealgebra` fn in crate `lz`."><title>match_prealgebra in lz::prealgebra - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="lz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../lz/index.html">lz</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In lz::prealgebra</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">lz</a>::<wbr><a href="index.html">prealgebra</a>::<wbr><a class="fn" href="#">match_prealgebra</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/lz/prealgebra.rs.html#268-347">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn match_prealgebra(function: <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="enum.Prealgebra.html" title="enum lz::prealgebra::Prealgebra">Prealgebra</a>>)</code></pre></section></div></main></body></html>
|
||||||
1
lz/prealgebra/index.html
Normal file
1
lz/prealgebra/index.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `prealgebra` mod in crate `lz`."><title>lz::prealgebra - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="lz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../lz/index.html">lz</a><span class="version">0.1.0</span></h2></div><h2 class="location"><a href="#">Module prealgebra</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></section><h2><a href="../index.html">In crate lz</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">lz</a>::<wbr><a class="mod" href="#">prealgebra</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/lz/prealgebra.rs.html#1-347">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><h2 id="enums" class="small-section-header"><a href="#enums">Enums</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.Prealgebra.html" title="enum lz::prealgebra::Prealgebra">Prealgebra</a></div></li></ul><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.match_prealgebra.html" title="fn lz::prealgebra::match_prealgebra">match_prealgebra</a></div></li></ul></section></div></main></body></html>
|
||||||
1
lz/prealgebra/sidebar-items.js
Normal file
1
lz/prealgebra/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
window.SIDEBAR_ITEMS = {"enum":["Prealgebra"],"fn":["match_prealgebra"]};
|
||||||
1
lz/sidebar-items.js
Normal file
1
lz/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
window.SIDEBAR_ITEMS = {"enum":["Subjects"],"fn":["main"],"mod":["prealgebra"],"struct":["Cli"]};
|
||||||
29
lz/struct.Cli.html
Normal file
29
lz/struct.Cli.html
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,6 @@
|
||||||
var searchIndex = JSON.parse('{\
|
var searchIndex = JSON.parse('{\
|
||||||
"ladderz":{"doc":"ladderz","t":"AFFFFFFFFF","n":["pre_algebra","get_factor_pairs","get_factors","get_multiples_in_range","get_prime_factorization","get_primes_in_range","is_composite","is_factor","is_multiple","is_prime"],"q":[[0,"ladderz"],[1,"ladderz::pre_algebra"]],"d":["Various pre-algebra implementations including factor …","Finds all factor pairs for a positive integer <code>n</code>.","Finds all factors of a positive integer <code>n</code>.","Finds all the multiples of a positive integer <code>n</code> up to and …","Returns the prime factorization of a positive integer <code>n</code>.","Returns all prime numbers in the range [start, end].","Checks if a positive integer <code>n</code> is a composite number.","Checks if a positive integer <code>x</code> is a factor of another …","Checks if a positive integer <code>x</code> is a multiple of another …","Checks if a positive integer <code>n</code> is a prime number."],"i":[0,0,0,0,0,0,0,0,0,0],"f":[0,[1,2],[1,[[2,[1]]]],[[1,1],[[2,[1]]]],[1,[[3,[1,1]]]],[[1,1],[[2,[1]]]],[1,4],[[1,1],4],[[1,1],4],[1,4]],"c":[],"p":[[15,"u32"],[3,"HashSet"],[3,"HashMap"],[15,"bool"]]}\
|
"ladderz":{"doc":"ladderz","t":"AFFFFFFFFF","n":["prealgebra","get_factor_pairs","get_factors","get_multiples_in_range","get_prime_factorization","get_primes_in_range","is_composite","is_factor","is_multiple","is_prime"],"q":[[0,"ladderz"],[1,"ladderz::prealgebra"],[10,"std::collections::hash::set"],[11,"std::collections::hash::map"]],"d":["Various pre-algebra implementations including factor …","Finds all factor pairs for a positive integer <code>n</code>.","Finds all factors of a positive integer <code>n</code>.","Finds all the multiples of a positive integer <code>n</code> up to and …","Returns the prime factorization of a positive integer <code>n</code>.","Returns all prime numbers in the range [start, end].","Checks if a positive integer <code>n</code> is a composite number.","Checks if a positive integer <code>x</code> is a factor of another …","Checks if a positive integer <code>x</code> is a multiple of another …","Checks if a positive integer <code>n</code> is a prime number."],"i":[0,0,0,0,0,0,0,0,0,0],"f":[0,[1,[[3,[[2,[1,1]]]]]],[1,[[3,[1]]]],[[1,1],[[3,[1]]]],[1,[[4,[1,1]]]],[[1,1],[[3,[1]]]],[1,5],[[1,1],5],[[1,1],5],[1,5]],"c":[],"p":[[15,"u32"],[15,"tuple"],[3,"HashSet",10],[3,"HashMap",11],[15,"bool"]],"b":[]},\
|
||||||
|
"lz":{"doc":"lz","t":"DNELLLLLLLLLLLLLLLLLLLLFAMLLLLLLLLLLMNNNNNNNENNLLLLLLLLLFLLLLLMMMMMMMMMMMMMMMMMMMMMM","n":["Cli","Prealgebra","Subjects","augment_args","augment_args_for_update","augment_subcommands","augment_subcommands_for_update","borrow","borrow","borrow_mut","borrow_mut","command","command_for_update","from","from","from_arg_matches","from_arg_matches","from_arg_matches_mut","from_arg_matches_mut","group_id","has_subcommand","into","into","main","prealgebra","subject","try_from","try_from","try_into","try_into","type_id","type_id","update_from_arg_matches","update_from_arg_matches","update_from_arg_matches_mut","update_from_arg_matches_mut","function","FactorPairs","Factors","IsComposite","IsFactor","IsMultiple","IsPrime","MultiplesInRange","Prealgebra","PrimeFactorization","PrimesInRange","augment_subcommands","augment_subcommands_for_update","borrow","borrow_mut","from","from_arg_matches","from_arg_matches_mut","has_subcommand","into","match_prealgebra","try_from","try_into","type_id","update_from_arg_matches","update_from_arg_matches_mut","lower_bound","m","m","n","n","n","n","n","n","n","n","raw","raw","raw","raw","raw","raw","raw","raw","raw","upper_bound","upper_bound"],"q":[[0,"lz"],[36,"lz::Subjects"],[37,"lz::prealgebra"],[62,"lz::prealgebra::Prealgebra"],[84,"clap_builder::builder::command"],[85,"clap_builder::parser::matches::arg_matches"],[86,"clap_builder"],[87,"core::result"],[88,"clap_builder::util::id"],[89,"core::option"],[90,"core::any"]],"d":["","","The subjects that can be used.","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","Calls <code>U::from(self)</code>.","Calls <code>U::from(self)</code>.","","","","","","","","","","","","","","The function (command) to run.","Finds all factor pairs for a positive integer.","Finds all factors for a positive integer.","Determines if a positive integer is composite.","Determines if a positive integer is a factor of another …","Determines if a positive integer is a multiple of another …","Determines if a positive integer is prime.","Finds all multiples of a positive integer in a given range.","","Finds the prime factorization of a positive integer.","Finds all primes in a given range.","","","","","Returns the argument unchanged.","","","","Calls <code>U::from(self)</code>.","","","","","","","The lower bound of the range to find primes in.","The positive integer to determine if it is a multiple.","The positive integer to determine if it is a factor.","The positive integer to find factor pairs for.","The positive integer to find factors for.","The positive integer to find multiples for.","The positive integer to find the prime factorization of.","The positive integer to determine if it is composite.","The positive integer to determine if it is prime.","The positive integer to determine if it is a factor.","The positive integer to determine if it is a multiple.","Whether or not to return the raw output.","Whether or not to return the raw output.","Whether or not to return the raw output.","Whether or not to return the raw output.","Whether or not to return the raw output.","Whether or not to return the raw output.","Whether or not to return the raw output.","Whether or not to return the raw output.","Whether or not to return the raw output.","The upper bound of the range to find multiples in.","The upper bound of the range to find primes in."],"i":[0,6,0,3,3,6,6,3,6,3,6,3,3,3,6,3,6,3,6,3,6,3,6,0,0,3,3,6,3,6,3,6,3,6,3,6,14,13,13,13,13,13,13,13,0,13,13,13,13,13,13,13,13,13,13,13,0,13,13,13,13,13,15,16,17,18,19,20,21,22,23,16,17,18,19,20,15,21,22,23,16,17,20,15],"f":[0,0,0,[1,1],[1,1],[1,1],[1,1],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[[],1],[[],1],[-1,-1,[]],[-1,-1,[]],[2,[[5,[3,4]]]],[2,[[5,[6,4]]]],[2,[[5,[3,4]]]],[2,[[5,[6,4]]]],[[],[[8,[7]]]],[9,10],[-1,-2,[],[]],[-1,-2,[],[]],[[],11],0,0,[-1,[[5,[-2]]],[],[]],[-1,[[5,[-2]]],[],[]],[-1,[[5,[-2]]],[],[]],[-1,[[5,[-2]]],[],[]],[-1,12,[]],[-1,12,[]],[[3,2],[[5,[11,4]]]],[[6,2],[[5,[11,4]]]],[[3,2],[[5,[11,4]]]],[[6,2],[[5,[11,4]]]],0,0,0,0,0,0,0,0,0,0,0,[1,1],[1,1],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-1,[]],[2,[[5,[13,4]]]],[2,[[5,[13,4]]]],[9,10],[-1,-2,[],[]],[[[8,[13]]],11],[-1,[[5,[-2]]],[],[]],[-1,[[5,[-2]]],[],[]],[-1,12,[]],[[13,2],[[5,[11,4]]]],[[13,2],[[5,[11,4]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"c":[],"p":[[3,"Command",84],[3,"ArgMatches",85],[3,"Cli",0],[6,"Error",86],[4,"Result",87],[4,"Subjects",0],[3,"Id",88],[4,"Option",89],[15,"str"],[15,"bool"],[15,"tuple"],[3,"TypeId",90],[4,"Prealgebra",37],[13,"Prealgebra",36],[13,"PrimesInRange",62],[13,"IsFactor",62],[13,"IsMultiple",62],[13,"FactorPairs",62],[13,"Factors",62],[13,"MultiplesInRange",62],[13,"PrimeFactorization",62],[13,"IsComposite",62],[13,"IsPrime",62]],"b":[]}\
|
||||||
}');
|
}');
|
||||||
if (typeof window !== 'undefined' && window.initSearch) {window.initSearch(searchIndex)};
|
if (typeof window !== 'undefined' && window.initSearch) {window.initSearch(searchIndex)};
|
||||||
if (typeof exports !== 'undefined') {exports.searchIndex = searchIndex};
|
if (typeof exports !== 'undefined') {exports.searchIndex = searchIndex};
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Settings of Rustdoc"><title>Rustdoc settings</title><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="./static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="./static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="./" data-static-root-path="./static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0 (cc66ad468 2023-10-03)" data-channel="1.73.0" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-1596385f77d47ef2.css" data-theme-dark-css="dark-0a43001d3fc2282c.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="./static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="./static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="./static.files/light-1596385f77d47ef2.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="./static.files/dark-0a43001d3fc2282c.css"><link rel="stylesheet" href="./static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="./static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="./static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="./static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="./ladderz/index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="./ladderz/index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location">Settings</h2><div class="sidebar-elems"></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="./help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="./settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="./static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Rustdoc settings</h1><span class="out-of-band"><a id="back" href="javascript:void(0)" onclick="history.back();">Back</a></span></div><noscript><section>You need to enable JavaScript be able to update your settings.</section></noscript><link rel="stylesheet" href="./static.files/settings-8c76f75bfb6bd192.css"><script defer src="./static.files/settings-de11bff964e9d4e5.js"></script><link rel="preload" href="./static.files/light-1596385f77d47ef2.css" as="style"><link rel="preload" href="./static.files/dark-0a43001d3fc2282c.css" as="style"><link rel="preload" href="./static.files/ayu-fd19013d6ce078bf.css" as="style"></section></div></main></body></html>
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Settings of Rustdoc"><title>Settings</title><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="./static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="./static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="./" data-static-root-path="./static.files/" data-current-crate="lz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="./static.files/storage-fec3eaa3851e447d.js"></script><script defer src="./static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="./static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="./static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="./static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="./static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod sys"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="./index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="./index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2><a href="./index.html">Rustdoc</a><span class="version">1.75.0</span></h2></div><div class="version">(82e1608df 2023-12-21)</div><h2 class="location">Settings</h2><div class="sidebar-elems"></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="./help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="./settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="./static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Rustdoc settings</h1><span class="out-of-band"><a id="back" href="javascript:void(0)" onclick="history.back();">Back</a></span></div><noscript><section>You need to enable JavaScript be able to update your settings.</section></noscript><script defer src="./static.files/settings-74424d7eec62a23e.js"></script></section></div></main></body></html>
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
var srcIndex = JSON.parse('{\
|
var srcIndex = JSON.parse('{\
|
||||||
"ladderz":["",[],["lib.rs","pre_algebra.rs"]]\
|
"ladderz":["",[],["lib.rs","prealgebra.rs"]],\
|
||||||
|
"lz":["",[],["main.rs","prealgebra.rs"]]\
|
||||||
}');
|
}');
|
||||||
createSrcSidebar();
|
createSrcSidebar();
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `src/lib.rs`."><title>lib.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0 (cc66ad468 2023-10-03)" data-channel="1.73.0" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-1596385f77d47ef2.css" data-theme-dark-css="dark-0a43001d3fc2282c.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="../../static.files/src-script-3280b574d94e47b4.js"></script><script defer src="../../src-files.js"></script><script defer src="../../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../static.files/light-1596385f77d47ef2.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../static.files/dark-0a43001d3fc2282c.css"><link rel="stylesheet" href="../../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><a class="sub-logo-container" href="../../ladderz/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `ladderz/src/lib.rs`."><title>lib.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="../../static.files/src-script-3280b574d94e47b4.js"></script><script defer src="../../src-files.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
|
||||||
<a href="#2" id="2">2</a>
|
<a href="#2" id="2">2</a>
|
||||||
<a href="#3" id="3">3</a>
|
<a href="#3" id="3">3</a>
|
||||||
<a href="#4" id="4">4</a>
|
<a href="#4" id="4">4</a>
|
||||||
|
|
@ -47,9 +47,9 @@
|
||||||
//!
|
//!
|
||||||
//! Implementations of mathematical and technical concepts in Rust.
|
//! Implementations of mathematical and technical concepts in Rust.
|
||||||
//!
|
//!
|
||||||
//! # Installing the crate
|
//! # Installation
|
||||||
//!
|
//!
|
||||||
//! To add the crate to your project, add the following dependency under your `[dependencies]` section in your `Cargo.toml`:
|
//! To add the library crate to your project, add the following dependency under your `[dependencies]` section in your `Cargo.toml`:
|
||||||
//!
|
//!
|
||||||
//! ```toml
|
//! ```toml
|
||||||
//! ladderz = { git = "https://github.com/rzmk/ladderz", branch = "main" }
|
//! ladderz = { git = "https://github.com/rzmk/ladderz", branch = "main" }
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
//! # Example
|
//! # Example
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
//!use ladderz::pre_algebra::get_factors;
|
//!use ladderz::prealgebra::get_factors;
|
||||||
//!
|
//!
|
||||||
//!let x: u32 = 10;
|
//!let x: u32 = 10;
|
||||||
//!println!("The factors of {x} are {:?}.", get_factors(x));
|
//!println!("The factors of {x} are {:?}.", get_factors(x));
|
||||||
|
|
@ -68,7 +68,7 @@
|
||||||
//! The factors of 10 are {1, 5, 2, 10}.
|
//! The factors of 10 are {1, 5, 2, 10}.
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! For a more detailed example of how to use the `ladderz` crate, please see the [example on GitHub](https://github.com/rzmk/ladderz#example).
|
//! For a more detailed example of how to use the `ladderz` crate, please see the [library example on GitHub](https://github.com/rzmk/ladderz#library-example).
|
||||||
//!
|
//!
|
||||||
//! Choose a module to view its available functions.
|
//! Choose a module to view its available functions.
|
||||||
|
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use ladderz::pre_algebra::get_factors;
|
/// use ladderz::prealgebra::get_factors;
|
||||||
///
|
///
|
||||||
/// let x: u32 = 10;
|
/// let x: u32 = 10;
|
||||||
/// println!("The factors of {x} are {:?}.", get_factors(x));
|
/// println!("The factors of {x} are {:?}.", get_factors(x));
|
||||||
|
|
@ -87,5 +87,5 @@
|
||||||
/// The factors of 10 are {1, 5, 2, 10}.
|
/// The factors of 10 are {1, 5, 2, 10}.
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
</span><span class="kw">pub mod </span>pre_algebra;
|
</span><span class="kw">pub mod </span>prealgebra;
|
||||||
</code></pre></div></section></main></body></html>
|
</code></pre></div></section></main></body></html>
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `src/pre_algebra.rs`."><title>pre_algebra.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0 (cc66ad468 2023-10-03)" data-channel="1.73.0" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-1596385f77d47ef2.css" data-theme-dark-css="dark-0a43001d3fc2282c.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="../../static.files/src-script-3280b574d94e47b4.js"></script><script defer src="../../src-files.js"></script><script defer src="../../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../static.files/light-1596385f77d47ef2.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../static.files/dark-0a43001d3fc2282c.css"><link rel="stylesheet" href="../../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><a class="sub-logo-container" href="../../ladderz/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `ladderz/src/prealgebra.rs`."><title>prealgebra.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ladderz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="../../static.files/src-script-3280b574d94e47b4.js"></script><script defer src="../../src-files.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
|
||||||
<a href="#2" id="2">2</a>
|
<a href="#2" id="2">2</a>
|
||||||
<a href="#3" id="3">3</a>
|
<a href="#3" id="3">3</a>
|
||||||
<a href="#4" id="4">4</a>
|
<a href="#4" id="4">4</a>
|
||||||
|
|
@ -395,7 +395,7 @@
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use std::collections::HashSet;
|
/// use std::collections::HashSet;
|
||||||
/// use ladderz::pre_algebra::get_factor_pairs;
|
/// use ladderz::prealgebra::get_factor_pairs;
|
||||||
///
|
///
|
||||||
/// let result_pairs = get_factor_pairs(12);
|
/// let result_pairs = get_factor_pairs(12);
|
||||||
/// let expected_pairs: HashSet<(u32, u32)> = [(1, 12), (2, 6), (3, 4)].into();
|
/// let expected_pairs: HashSet<(u32, u32)> = [(1, 12), (2, 6), (3, 4)].into();
|
||||||
|
|
@ -436,7 +436,7 @@
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use std::collections::HashSet;
|
/// use std::collections::HashSet;
|
||||||
/// use ladderz::pre_algebra::get_factors;
|
/// use ladderz::prealgebra::get_factors;
|
||||||
///
|
///
|
||||||
/// let result_factors = get_factors(16);
|
/// let result_factors = get_factors(16);
|
||||||
/// let expected_factors: HashSet<u32> = [1, 2, 4, 8, 16].into();
|
/// let expected_factors: HashSet<u32> = [1, 2, 4, 8, 16].into();
|
||||||
|
|
@ -466,7 +466,7 @@
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use ladderz::pre_algebra::is_factor;
|
/// use ladderz::prealgebra::is_factor;
|
||||||
///
|
///
|
||||||
/// assert!(is_factor(2, 16)); // 2 is a factor of 16
|
/// assert!(is_factor(2, 16)); // 2 is a factor of 16
|
||||||
/// assert!(!is_factor(3, 16)); // 3 is not a factor of 16
|
/// assert!(!is_factor(3, 16)); // 3 is not a factor of 16
|
||||||
|
|
@ -487,7 +487,7 @@
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use ladderz::pre_algebra::is_multiple;
|
/// use ladderz::prealgebra::is_multiple;
|
||||||
///
|
///
|
||||||
/// assert!(is_multiple(16, 2)); // 16 is a multiple of 2
|
/// assert!(is_multiple(16, 2)); // 16 is a multiple of 2
|
||||||
/// assert!(!is_multiple(16, 3)); // 16 is not a multiple of 3
|
/// assert!(!is_multiple(16, 3)); // 16 is not a multiple of 3
|
||||||
|
|
@ -503,7 +503,7 @@
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use ladderz::pre_algebra::get_multiples_in_range;
|
/// use ladderz::prealgebra::get_multiples_in_range;
|
||||||
/// use std::collections::HashSet;
|
/// use std::collections::HashSet;
|
||||||
///
|
///
|
||||||
/// let result: HashSet<u32> = get_multiples_in_range(2, 10);
|
/// let result: HashSet<u32> = get_multiples_in_range(2, 10);
|
||||||
|
|
@ -527,7 +527,7 @@
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use ladderz::pre_algebra::is_prime;
|
/// use ladderz::prealgebra::is_prime;
|
||||||
///
|
///
|
||||||
/// assert!(!is_prime(1)); // 1 is not a prime number
|
/// assert!(!is_prime(1)); // 1 is not a prime number
|
||||||
/// assert!(is_prime(2)); // 2 is a prime number
|
/// assert!(is_prime(2)); // 2 is a prime number
|
||||||
|
|
@ -559,7 +559,7 @@
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use ladderz::pre_algebra::is_composite;
|
/// use ladderz::prealgebra::is_composite;
|
||||||
///
|
///
|
||||||
/// assert!(!is_composite(1)); // 1 is not a composite number
|
/// assert!(!is_composite(1)); // 1 is not a composite number
|
||||||
/// assert!(!is_composite(2)); // 2 is not a composite number
|
/// assert!(!is_composite(2)); // 2 is not a composite number
|
||||||
|
|
@ -583,7 +583,7 @@
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use ladderz::pre_algebra::get_primes_in_range;
|
/// use ladderz::prealgebra::get_primes_in_range;
|
||||||
/// use std::collections::HashSet;
|
/// use std::collections::HashSet;
|
||||||
///
|
///
|
||||||
/// let result: HashSet<u32> = get_primes_in_range(2, 10);
|
/// let result: HashSet<u32> = get_primes_in_range(2, 10);
|
||||||
|
|
@ -609,7 +609,7 @@
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use ladderz::pre_algebra::get_prime_factorization;
|
/// use ladderz::prealgebra::get_prime_factorization;
|
||||||
/// use std::collections::HashMap;
|
/// use std::collections::HashMap;
|
||||||
///
|
///
|
||||||
/// let result: HashMap<u32, u32> = get_prime_factorization(12);
|
/// let result: HashMap<u32, u32> = get_prime_factorization(12);
|
||||||
143
src/lz/main.rs.html
Normal file
143
src/lz/main.rs.html
Normal file
|
|
@ -0,0 +1,143 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `lz/src/main.rs`."><title>main.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="lz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="../../static.files/src-script-3280b574d94e47b4.js"></script><script defer src="../../src-files.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
|
||||||
|
<a href="#2" id="2">2</a>
|
||||||
|
<a href="#3" id="3">3</a>
|
||||||
|
<a href="#4" id="4">4</a>
|
||||||
|
<a href="#5" id="5">5</a>
|
||||||
|
<a href="#6" id="6">6</a>
|
||||||
|
<a href="#7" id="7">7</a>
|
||||||
|
<a href="#8" id="8">8</a>
|
||||||
|
<a href="#9" id="9">9</a>
|
||||||
|
<a href="#10" id="10">10</a>
|
||||||
|
<a href="#11" id="11">11</a>
|
||||||
|
<a href="#12" id="12">12</a>
|
||||||
|
<a href="#13" id="13">13</a>
|
||||||
|
<a href="#14" id="14">14</a>
|
||||||
|
<a href="#15" id="15">15</a>
|
||||||
|
<a href="#16" id="16">16</a>
|
||||||
|
<a href="#17" id="17">17</a>
|
||||||
|
<a href="#18" id="18">18</a>
|
||||||
|
<a href="#19" id="19">19</a>
|
||||||
|
<a href="#20" id="20">20</a>
|
||||||
|
<a href="#21" id="21">21</a>
|
||||||
|
<a href="#22" id="22">22</a>
|
||||||
|
<a href="#23" id="23">23</a>
|
||||||
|
<a href="#24" id="24">24</a>
|
||||||
|
<a href="#25" id="25">25</a>
|
||||||
|
<a href="#26" id="26">26</a>
|
||||||
|
<a href="#27" id="27">27</a>
|
||||||
|
<a href="#28" id="28">28</a>
|
||||||
|
<a href="#29" id="29">29</a>
|
||||||
|
<a href="#30" id="30">30</a>
|
||||||
|
<a href="#31" id="31">31</a>
|
||||||
|
<a href="#32" id="32">32</a>
|
||||||
|
<a href="#33" id="33">33</a>
|
||||||
|
<a href="#34" id="34">34</a>
|
||||||
|
<a href="#35" id="35">35</a>
|
||||||
|
<a href="#36" id="36">36</a>
|
||||||
|
<a href="#37" id="37">37</a>
|
||||||
|
<a href="#38" id="38">38</a>
|
||||||
|
<a href="#39" id="39">39</a>
|
||||||
|
<a href="#40" id="40">40</a>
|
||||||
|
<a href="#41" id="41">41</a>
|
||||||
|
<a href="#42" id="42">42</a>
|
||||||
|
<a href="#43" id="43">43</a>
|
||||||
|
<a href="#44" id="44">44</a>
|
||||||
|
<a href="#45" id="45">45</a>
|
||||||
|
<a href="#46" id="46">46</a>
|
||||||
|
<a href="#47" id="47">47</a>
|
||||||
|
<a href="#48" id="48">48</a>
|
||||||
|
<a href="#49" id="49">49</a>
|
||||||
|
<a href="#50" id="50">50</a>
|
||||||
|
<a href="#51" id="51">51</a>
|
||||||
|
<a href="#52" id="52">52</a>
|
||||||
|
<a href="#53" id="53">53</a>
|
||||||
|
<a href="#54" id="54">54</a>
|
||||||
|
<a href="#55" id="55">55</a>
|
||||||
|
<a href="#56" id="56">56</a>
|
||||||
|
<a href="#57" id="57">57</a>
|
||||||
|
<a href="#58" id="58">58</a>
|
||||||
|
<a href="#59" id="59">59</a>
|
||||||
|
<a href="#60" id="60">60</a>
|
||||||
|
<a href="#61" id="61">61</a>
|
||||||
|
<a href="#62" id="62">62</a>
|
||||||
|
<a href="#63" id="63">63</a>
|
||||||
|
<a href="#64" id="64">64</a>
|
||||||
|
<a href="#65" id="65">65</a>
|
||||||
|
<a href="#66" id="66">66</a>
|
||||||
|
<a href="#67" id="67">67</a>
|
||||||
|
<a href="#68" id="68">68</a>
|
||||||
|
<a href="#69" id="69">69</a>
|
||||||
|
<a href="#70" id="70">70</a>
|
||||||
|
<a href="#71" id="71">71</a>
|
||||||
|
</pre></div><pre class="rust"><code><span class="doccomment">//! # lz
|
||||||
|
//!
|
||||||
|
//! A command-line interface for various math/tech subjects. Based on the [ladderz](https://github.com/rzmk/ladderz) library.
|
||||||
|
//!
|
||||||
|
//! # Installation
|
||||||
|
//!
|
||||||
|
//! To install the command-line interface, run the following command in your terminal:
|
||||||
|
//!
|
||||||
|
//! ```bash
|
||||||
|
//! cargo install --git https://github.com/rzmk/ladderz --branch main
|
||||||
|
//! ```
|
||||||
|
//!
|
||||||
|
//! # Example
|
||||||
|
//!
|
||||||
|
//! ```bash
|
||||||
|
//! lz prealgebra is-factor 3 12
|
||||||
|
//! ```
|
||||||
|
//!
|
||||||
|
//! ```console
|
||||||
|
//! 3 is a factor of 12.
|
||||||
|
//! ```
|
||||||
|
//!
|
||||||
|
//! You may view the help menu for a subject and a function by running the command with the `-h` or `--help` flag:
|
||||||
|
//!
|
||||||
|
//! ```bash
|
||||||
|
//! lz prealgebra is-factor -h
|
||||||
|
//! ```
|
||||||
|
//!
|
||||||
|
//! Learn more on [GitHub](https://github.com/rzmk/ladderz).
|
||||||
|
|
||||||
|
</span><span class="comment">// External modules
|
||||||
|
</span><span class="kw">use </span>clap::{Parser, Subcommand};
|
||||||
|
|
||||||
|
<span class="comment">// Local modules
|
||||||
|
</span><span class="kw">pub mod </span>prealgebra;
|
||||||
|
<span class="kw">use </span>prealgebra::{match_prealgebra, Prealgebra};
|
||||||
|
|
||||||
|
<span class="attr">#[derive(Parser)]
|
||||||
|
#[command(
|
||||||
|
author = <span class="string">"Mueez Khan"</span>,
|
||||||
|
about = <span class="string">"Run various functions from a range of math/tech subjects on the command line."</span>,
|
||||||
|
subcommand_value_name = <span class="string">"SUBJECT"</span>,
|
||||||
|
arg_required_else_help(<span class="bool-val">true</span>)
|
||||||
|
)]
|
||||||
|
</span><span class="kw">struct </span>Cli {
|
||||||
|
<span class="attr">#[command(subcommand)]
|
||||||
|
</span>subject: <span class="prelude-ty">Option</span><Subjects>,
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="doccomment">/// The subjects that can be used.
|
||||||
|
</span><span class="attr">#[derive(Subcommand)]
|
||||||
|
#[command(arg_required_else_help(<span class="bool-val">true</span>))]
|
||||||
|
</span><span class="kw">enum </span>Subjects {
|
||||||
|
Prealgebra {
|
||||||
|
<span class="doccomment">/// The function (command) to run.
|
||||||
|
</span><span class="attr">#[command(subcommand)]
|
||||||
|
</span>function: <span class="prelude-ty">Option</span><Prealgebra>,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="kw">fn </span>main() {
|
||||||
|
<span class="kw">let </span>cli: Cli = Cli::parse();
|
||||||
|
|
||||||
|
<span class="comment">// Match the subject to run the correct function.
|
||||||
|
</span><span class="kw">match </span>cli.subject {
|
||||||
|
<span class="prelude-val">Some</span>(Subjects::Prealgebra { function }) => match_prealgebra(function),
|
||||||
|
<span class="prelude-val">None </span>=> {
|
||||||
|
<span class="macro">println!</span>(<span class="string">"Please provide a subject to use."</span>);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</code></pre></div></section></main></body></html>
|
||||||
695
src/lz/prealgebra.rs.html
Normal file
695
src/lz/prealgebra.rs.html
Normal file
|
|
@ -0,0 +1,695 @@
|
||||||
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `lz/src/prealgebra.rs`."><title>prealgebra.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="lz" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="../../static.files/src-script-3280b574d94e47b4.js"></script><script defer src="../../src-files.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
|
||||||
|
<a href="#2" id="2">2</a>
|
||||||
|
<a href="#3" id="3">3</a>
|
||||||
|
<a href="#4" id="4">4</a>
|
||||||
|
<a href="#5" id="5">5</a>
|
||||||
|
<a href="#6" id="6">6</a>
|
||||||
|
<a href="#7" id="7">7</a>
|
||||||
|
<a href="#8" id="8">8</a>
|
||||||
|
<a href="#9" id="9">9</a>
|
||||||
|
<a href="#10" id="10">10</a>
|
||||||
|
<a href="#11" id="11">11</a>
|
||||||
|
<a href="#12" id="12">12</a>
|
||||||
|
<a href="#13" id="13">13</a>
|
||||||
|
<a href="#14" id="14">14</a>
|
||||||
|
<a href="#15" id="15">15</a>
|
||||||
|
<a href="#16" id="16">16</a>
|
||||||
|
<a href="#17" id="17">17</a>
|
||||||
|
<a href="#18" id="18">18</a>
|
||||||
|
<a href="#19" id="19">19</a>
|
||||||
|
<a href="#20" id="20">20</a>
|
||||||
|
<a href="#21" id="21">21</a>
|
||||||
|
<a href="#22" id="22">22</a>
|
||||||
|
<a href="#23" id="23">23</a>
|
||||||
|
<a href="#24" id="24">24</a>
|
||||||
|
<a href="#25" id="25">25</a>
|
||||||
|
<a href="#26" id="26">26</a>
|
||||||
|
<a href="#27" id="27">27</a>
|
||||||
|
<a href="#28" id="28">28</a>
|
||||||
|
<a href="#29" id="29">29</a>
|
||||||
|
<a href="#30" id="30">30</a>
|
||||||
|
<a href="#31" id="31">31</a>
|
||||||
|
<a href="#32" id="32">32</a>
|
||||||
|
<a href="#33" id="33">33</a>
|
||||||
|
<a href="#34" id="34">34</a>
|
||||||
|
<a href="#35" id="35">35</a>
|
||||||
|
<a href="#36" id="36">36</a>
|
||||||
|
<a href="#37" id="37">37</a>
|
||||||
|
<a href="#38" id="38">38</a>
|
||||||
|
<a href="#39" id="39">39</a>
|
||||||
|
<a href="#40" id="40">40</a>
|
||||||
|
<a href="#41" id="41">41</a>
|
||||||
|
<a href="#42" id="42">42</a>
|
||||||
|
<a href="#43" id="43">43</a>
|
||||||
|
<a href="#44" id="44">44</a>
|
||||||
|
<a href="#45" id="45">45</a>
|
||||||
|
<a href="#46" id="46">46</a>
|
||||||
|
<a href="#47" id="47">47</a>
|
||||||
|
<a href="#48" id="48">48</a>
|
||||||
|
<a href="#49" id="49">49</a>
|
||||||
|
<a href="#50" id="50">50</a>
|
||||||
|
<a href="#51" id="51">51</a>
|
||||||
|
<a href="#52" id="52">52</a>
|
||||||
|
<a href="#53" id="53">53</a>
|
||||||
|
<a href="#54" id="54">54</a>
|
||||||
|
<a href="#55" id="55">55</a>
|
||||||
|
<a href="#56" id="56">56</a>
|
||||||
|
<a href="#57" id="57">57</a>
|
||||||
|
<a href="#58" id="58">58</a>
|
||||||
|
<a href="#59" id="59">59</a>
|
||||||
|
<a href="#60" id="60">60</a>
|
||||||
|
<a href="#61" id="61">61</a>
|
||||||
|
<a href="#62" id="62">62</a>
|
||||||
|
<a href="#63" id="63">63</a>
|
||||||
|
<a href="#64" id="64">64</a>
|
||||||
|
<a href="#65" id="65">65</a>
|
||||||
|
<a href="#66" id="66">66</a>
|
||||||
|
<a href="#67" id="67">67</a>
|
||||||
|
<a href="#68" id="68">68</a>
|
||||||
|
<a href="#69" id="69">69</a>
|
||||||
|
<a href="#70" id="70">70</a>
|
||||||
|
<a href="#71" id="71">71</a>
|
||||||
|
<a href="#72" id="72">72</a>
|
||||||
|
<a href="#73" id="73">73</a>
|
||||||
|
<a href="#74" id="74">74</a>
|
||||||
|
<a href="#75" id="75">75</a>
|
||||||
|
<a href="#76" id="76">76</a>
|
||||||
|
<a href="#77" id="77">77</a>
|
||||||
|
<a href="#78" id="78">78</a>
|
||||||
|
<a href="#79" id="79">79</a>
|
||||||
|
<a href="#80" id="80">80</a>
|
||||||
|
<a href="#81" id="81">81</a>
|
||||||
|
<a href="#82" id="82">82</a>
|
||||||
|
<a href="#83" id="83">83</a>
|
||||||
|
<a href="#84" id="84">84</a>
|
||||||
|
<a href="#85" id="85">85</a>
|
||||||
|
<a href="#86" id="86">86</a>
|
||||||
|
<a href="#87" id="87">87</a>
|
||||||
|
<a href="#88" id="88">88</a>
|
||||||
|
<a href="#89" id="89">89</a>
|
||||||
|
<a href="#90" id="90">90</a>
|
||||||
|
<a href="#91" id="91">91</a>
|
||||||
|
<a href="#92" id="92">92</a>
|
||||||
|
<a href="#93" id="93">93</a>
|
||||||
|
<a href="#94" id="94">94</a>
|
||||||
|
<a href="#95" id="95">95</a>
|
||||||
|
<a href="#96" id="96">96</a>
|
||||||
|
<a href="#97" id="97">97</a>
|
||||||
|
<a href="#98" id="98">98</a>
|
||||||
|
<a href="#99" id="99">99</a>
|
||||||
|
<a href="#100" id="100">100</a>
|
||||||
|
<a href="#101" id="101">101</a>
|
||||||
|
<a href="#102" id="102">102</a>
|
||||||
|
<a href="#103" id="103">103</a>
|
||||||
|
<a href="#104" id="104">104</a>
|
||||||
|
<a href="#105" id="105">105</a>
|
||||||
|
<a href="#106" id="106">106</a>
|
||||||
|
<a href="#107" id="107">107</a>
|
||||||
|
<a href="#108" id="108">108</a>
|
||||||
|
<a href="#109" id="109">109</a>
|
||||||
|
<a href="#110" id="110">110</a>
|
||||||
|
<a href="#111" id="111">111</a>
|
||||||
|
<a href="#112" id="112">112</a>
|
||||||
|
<a href="#113" id="113">113</a>
|
||||||
|
<a href="#114" id="114">114</a>
|
||||||
|
<a href="#115" id="115">115</a>
|
||||||
|
<a href="#116" id="116">116</a>
|
||||||
|
<a href="#117" id="117">117</a>
|
||||||
|
<a href="#118" id="118">118</a>
|
||||||
|
<a href="#119" id="119">119</a>
|
||||||
|
<a href="#120" id="120">120</a>
|
||||||
|
<a href="#121" id="121">121</a>
|
||||||
|
<a href="#122" id="122">122</a>
|
||||||
|
<a href="#123" id="123">123</a>
|
||||||
|
<a href="#124" id="124">124</a>
|
||||||
|
<a href="#125" id="125">125</a>
|
||||||
|
<a href="#126" id="126">126</a>
|
||||||
|
<a href="#127" id="127">127</a>
|
||||||
|
<a href="#128" id="128">128</a>
|
||||||
|
<a href="#129" id="129">129</a>
|
||||||
|
<a href="#130" id="130">130</a>
|
||||||
|
<a href="#131" id="131">131</a>
|
||||||
|
<a href="#132" id="132">132</a>
|
||||||
|
<a href="#133" id="133">133</a>
|
||||||
|
<a href="#134" id="134">134</a>
|
||||||
|
<a href="#135" id="135">135</a>
|
||||||
|
<a href="#136" id="136">136</a>
|
||||||
|
<a href="#137" id="137">137</a>
|
||||||
|
<a href="#138" id="138">138</a>
|
||||||
|
<a href="#139" id="139">139</a>
|
||||||
|
<a href="#140" id="140">140</a>
|
||||||
|
<a href="#141" id="141">141</a>
|
||||||
|
<a href="#142" id="142">142</a>
|
||||||
|
<a href="#143" id="143">143</a>
|
||||||
|
<a href="#144" id="144">144</a>
|
||||||
|
<a href="#145" id="145">145</a>
|
||||||
|
<a href="#146" id="146">146</a>
|
||||||
|
<a href="#147" id="147">147</a>
|
||||||
|
<a href="#148" id="148">148</a>
|
||||||
|
<a href="#149" id="149">149</a>
|
||||||
|
<a href="#150" id="150">150</a>
|
||||||
|
<a href="#151" id="151">151</a>
|
||||||
|
<a href="#152" id="152">152</a>
|
||||||
|
<a href="#153" id="153">153</a>
|
||||||
|
<a href="#154" id="154">154</a>
|
||||||
|
<a href="#155" id="155">155</a>
|
||||||
|
<a href="#156" id="156">156</a>
|
||||||
|
<a href="#157" id="157">157</a>
|
||||||
|
<a href="#158" id="158">158</a>
|
||||||
|
<a href="#159" id="159">159</a>
|
||||||
|
<a href="#160" id="160">160</a>
|
||||||
|
<a href="#161" id="161">161</a>
|
||||||
|
<a href="#162" id="162">162</a>
|
||||||
|
<a href="#163" id="163">163</a>
|
||||||
|
<a href="#164" id="164">164</a>
|
||||||
|
<a href="#165" id="165">165</a>
|
||||||
|
<a href="#166" id="166">166</a>
|
||||||
|
<a href="#167" id="167">167</a>
|
||||||
|
<a href="#168" id="168">168</a>
|
||||||
|
<a href="#169" id="169">169</a>
|
||||||
|
<a href="#170" id="170">170</a>
|
||||||
|
<a href="#171" id="171">171</a>
|
||||||
|
<a href="#172" id="172">172</a>
|
||||||
|
<a href="#173" id="173">173</a>
|
||||||
|
<a href="#174" id="174">174</a>
|
||||||
|
<a href="#175" id="175">175</a>
|
||||||
|
<a href="#176" id="176">176</a>
|
||||||
|
<a href="#177" id="177">177</a>
|
||||||
|
<a href="#178" id="178">178</a>
|
||||||
|
<a href="#179" id="179">179</a>
|
||||||
|
<a href="#180" id="180">180</a>
|
||||||
|
<a href="#181" id="181">181</a>
|
||||||
|
<a href="#182" id="182">182</a>
|
||||||
|
<a href="#183" id="183">183</a>
|
||||||
|
<a href="#184" id="184">184</a>
|
||||||
|
<a href="#185" id="185">185</a>
|
||||||
|
<a href="#186" id="186">186</a>
|
||||||
|
<a href="#187" id="187">187</a>
|
||||||
|
<a href="#188" id="188">188</a>
|
||||||
|
<a href="#189" id="189">189</a>
|
||||||
|
<a href="#190" id="190">190</a>
|
||||||
|
<a href="#191" id="191">191</a>
|
||||||
|
<a href="#192" id="192">192</a>
|
||||||
|
<a href="#193" id="193">193</a>
|
||||||
|
<a href="#194" id="194">194</a>
|
||||||
|
<a href="#195" id="195">195</a>
|
||||||
|
<a href="#196" id="196">196</a>
|
||||||
|
<a href="#197" id="197">197</a>
|
||||||
|
<a href="#198" id="198">198</a>
|
||||||
|
<a href="#199" id="199">199</a>
|
||||||
|
<a href="#200" id="200">200</a>
|
||||||
|
<a href="#201" id="201">201</a>
|
||||||
|
<a href="#202" id="202">202</a>
|
||||||
|
<a href="#203" id="203">203</a>
|
||||||
|
<a href="#204" id="204">204</a>
|
||||||
|
<a href="#205" id="205">205</a>
|
||||||
|
<a href="#206" id="206">206</a>
|
||||||
|
<a href="#207" id="207">207</a>
|
||||||
|
<a href="#208" id="208">208</a>
|
||||||
|
<a href="#209" id="209">209</a>
|
||||||
|
<a href="#210" id="210">210</a>
|
||||||
|
<a href="#211" id="211">211</a>
|
||||||
|
<a href="#212" id="212">212</a>
|
||||||
|
<a href="#213" id="213">213</a>
|
||||||
|
<a href="#214" id="214">214</a>
|
||||||
|
<a href="#215" id="215">215</a>
|
||||||
|
<a href="#216" id="216">216</a>
|
||||||
|
<a href="#217" id="217">217</a>
|
||||||
|
<a href="#218" id="218">218</a>
|
||||||
|
<a href="#219" id="219">219</a>
|
||||||
|
<a href="#220" id="220">220</a>
|
||||||
|
<a href="#221" id="221">221</a>
|
||||||
|
<a href="#222" id="222">222</a>
|
||||||
|
<a href="#223" id="223">223</a>
|
||||||
|
<a href="#224" id="224">224</a>
|
||||||
|
<a href="#225" id="225">225</a>
|
||||||
|
<a href="#226" id="226">226</a>
|
||||||
|
<a href="#227" id="227">227</a>
|
||||||
|
<a href="#228" id="228">228</a>
|
||||||
|
<a href="#229" id="229">229</a>
|
||||||
|
<a href="#230" id="230">230</a>
|
||||||
|
<a href="#231" id="231">231</a>
|
||||||
|
<a href="#232" id="232">232</a>
|
||||||
|
<a href="#233" id="233">233</a>
|
||||||
|
<a href="#234" id="234">234</a>
|
||||||
|
<a href="#235" id="235">235</a>
|
||||||
|
<a href="#236" id="236">236</a>
|
||||||
|
<a href="#237" id="237">237</a>
|
||||||
|
<a href="#238" id="238">238</a>
|
||||||
|
<a href="#239" id="239">239</a>
|
||||||
|
<a href="#240" id="240">240</a>
|
||||||
|
<a href="#241" id="241">241</a>
|
||||||
|
<a href="#242" id="242">242</a>
|
||||||
|
<a href="#243" id="243">243</a>
|
||||||
|
<a href="#244" id="244">244</a>
|
||||||
|
<a href="#245" id="245">245</a>
|
||||||
|
<a href="#246" id="246">246</a>
|
||||||
|
<a href="#247" id="247">247</a>
|
||||||
|
<a href="#248" id="248">248</a>
|
||||||
|
<a href="#249" id="249">249</a>
|
||||||
|
<a href="#250" id="250">250</a>
|
||||||
|
<a href="#251" id="251">251</a>
|
||||||
|
<a href="#252" id="252">252</a>
|
||||||
|
<a href="#253" id="253">253</a>
|
||||||
|
<a href="#254" id="254">254</a>
|
||||||
|
<a href="#255" id="255">255</a>
|
||||||
|
<a href="#256" id="256">256</a>
|
||||||
|
<a href="#257" id="257">257</a>
|
||||||
|
<a href="#258" id="258">258</a>
|
||||||
|
<a href="#259" id="259">259</a>
|
||||||
|
<a href="#260" id="260">260</a>
|
||||||
|
<a href="#261" id="261">261</a>
|
||||||
|
<a href="#262" id="262">262</a>
|
||||||
|
<a href="#263" id="263">263</a>
|
||||||
|
<a href="#264" id="264">264</a>
|
||||||
|
<a href="#265" id="265">265</a>
|
||||||
|
<a href="#266" id="266">266</a>
|
||||||
|
<a href="#267" id="267">267</a>
|
||||||
|
<a href="#268" id="268">268</a>
|
||||||
|
<a href="#269" id="269">269</a>
|
||||||
|
<a href="#270" id="270">270</a>
|
||||||
|
<a href="#271" id="271">271</a>
|
||||||
|
<a href="#272" id="272">272</a>
|
||||||
|
<a href="#273" id="273">273</a>
|
||||||
|
<a href="#274" id="274">274</a>
|
||||||
|
<a href="#275" id="275">275</a>
|
||||||
|
<a href="#276" id="276">276</a>
|
||||||
|
<a href="#277" id="277">277</a>
|
||||||
|
<a href="#278" id="278">278</a>
|
||||||
|
<a href="#279" id="279">279</a>
|
||||||
|
<a href="#280" id="280">280</a>
|
||||||
|
<a href="#281" id="281">281</a>
|
||||||
|
<a href="#282" id="282">282</a>
|
||||||
|
<a href="#283" id="283">283</a>
|
||||||
|
<a href="#284" id="284">284</a>
|
||||||
|
<a href="#285" id="285">285</a>
|
||||||
|
<a href="#286" id="286">286</a>
|
||||||
|
<a href="#287" id="287">287</a>
|
||||||
|
<a href="#288" id="288">288</a>
|
||||||
|
<a href="#289" id="289">289</a>
|
||||||
|
<a href="#290" id="290">290</a>
|
||||||
|
<a href="#291" id="291">291</a>
|
||||||
|
<a href="#292" id="292">292</a>
|
||||||
|
<a href="#293" id="293">293</a>
|
||||||
|
<a href="#294" id="294">294</a>
|
||||||
|
<a href="#295" id="295">295</a>
|
||||||
|
<a href="#296" id="296">296</a>
|
||||||
|
<a href="#297" id="297">297</a>
|
||||||
|
<a href="#298" id="298">298</a>
|
||||||
|
<a href="#299" id="299">299</a>
|
||||||
|
<a href="#300" id="300">300</a>
|
||||||
|
<a href="#301" id="301">301</a>
|
||||||
|
<a href="#302" id="302">302</a>
|
||||||
|
<a href="#303" id="303">303</a>
|
||||||
|
<a href="#304" id="304">304</a>
|
||||||
|
<a href="#305" id="305">305</a>
|
||||||
|
<a href="#306" id="306">306</a>
|
||||||
|
<a href="#307" id="307">307</a>
|
||||||
|
<a href="#308" id="308">308</a>
|
||||||
|
<a href="#309" id="309">309</a>
|
||||||
|
<a href="#310" id="310">310</a>
|
||||||
|
<a href="#311" id="311">311</a>
|
||||||
|
<a href="#312" id="312">312</a>
|
||||||
|
<a href="#313" id="313">313</a>
|
||||||
|
<a href="#314" id="314">314</a>
|
||||||
|
<a href="#315" id="315">315</a>
|
||||||
|
<a href="#316" id="316">316</a>
|
||||||
|
<a href="#317" id="317">317</a>
|
||||||
|
<a href="#318" id="318">318</a>
|
||||||
|
<a href="#319" id="319">319</a>
|
||||||
|
<a href="#320" id="320">320</a>
|
||||||
|
<a href="#321" id="321">321</a>
|
||||||
|
<a href="#322" id="322">322</a>
|
||||||
|
<a href="#323" id="323">323</a>
|
||||||
|
<a href="#324" id="324">324</a>
|
||||||
|
<a href="#325" id="325">325</a>
|
||||||
|
<a href="#326" id="326">326</a>
|
||||||
|
<a href="#327" id="327">327</a>
|
||||||
|
<a href="#328" id="328">328</a>
|
||||||
|
<a href="#329" id="329">329</a>
|
||||||
|
<a href="#330" id="330">330</a>
|
||||||
|
<a href="#331" id="331">331</a>
|
||||||
|
<a href="#332" id="332">332</a>
|
||||||
|
<a href="#333" id="333">333</a>
|
||||||
|
<a href="#334" id="334">334</a>
|
||||||
|
<a href="#335" id="335">335</a>
|
||||||
|
<a href="#336" id="336">336</a>
|
||||||
|
<a href="#337" id="337">337</a>
|
||||||
|
<a href="#338" id="338">338</a>
|
||||||
|
<a href="#339" id="339">339</a>
|
||||||
|
<a href="#340" id="340">340</a>
|
||||||
|
<a href="#341" id="341">341</a>
|
||||||
|
<a href="#342" id="342">342</a>
|
||||||
|
<a href="#343" id="343">343</a>
|
||||||
|
<a href="#344" id="344">344</a>
|
||||||
|
<a href="#345" id="345">345</a>
|
||||||
|
<a href="#346" id="346">346</a>
|
||||||
|
<a href="#347" id="347">347</a>
|
||||||
|
</pre></div><pre class="rust"><code><span class="kw">use </span>clap::Subcommand;
|
||||||
|
|
||||||
|
<span class="attr">#[derive(Subcommand)]
|
||||||
|
#[command(arg_required_else_help(<span class="bool-val">true</span>))]
|
||||||
|
</span><span class="kw">pub enum </span>Prealgebra {
|
||||||
|
<span class="doccomment">/// Finds all factor pairs for a positive integer.
|
||||||
|
///
|
||||||
|
/// ## Example
|
||||||
|
///
|
||||||
|
/// ### Input
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// lz prealgebra factor-pairs 12
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ### Output
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// The factor pairs of 12 are [(1, 12), (2, 6), (3, 4)].
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ## Raw Output (use `-r` or `--raw`)
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// [(1, 12), (2, 6), (3, 4)]
|
||||||
|
/// ```
|
||||||
|
</span>FactorPairs {
|
||||||
|
<span class="doccomment">/// The positive integer to find factor pairs for.
|
||||||
|
</span>n: u32,
|
||||||
|
<span class="doccomment">/// Whether or not to return the raw output.
|
||||||
|
</span><span class="attr">#[arg(short = <span class="string">'r'</span>, long)]
|
||||||
|
</span>raw: bool,
|
||||||
|
},
|
||||||
|
<span class="doccomment">/// Finds all factors for a positive integer.
|
||||||
|
///
|
||||||
|
/// ## Example
|
||||||
|
///
|
||||||
|
/// ### Input
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// lz prealgebra factors 12
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ### Output
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// The factors of 12 are [1, 2, 3, 4, 6, 12].
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ## Raw Output (use `-r` or `--raw`)
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// [1, 2, 3, 4, 6, 12]
|
||||||
|
/// ```
|
||||||
|
</span>Factors {
|
||||||
|
<span class="doccomment">/// The positive integer to find factors for.
|
||||||
|
</span>n: u32,
|
||||||
|
<span class="doccomment">/// Whether or not to return the raw output.
|
||||||
|
</span><span class="attr">#[arg(short = <span class="string">'r'</span>, long)]
|
||||||
|
</span>raw: bool,
|
||||||
|
},
|
||||||
|
<span class="doccomment">/// Finds all multiples of a positive integer in a given range.
|
||||||
|
///
|
||||||
|
/// ## Example
|
||||||
|
///
|
||||||
|
/// ### Input
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// lz prealgebra multiples-in-range 3 10
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ### Output
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// The multiples of 3 in the range [1, 10] are [3, 6, 9].
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ## Raw Output (use `-r` or `--raw`)
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// [3, 6, 9]
|
||||||
|
/// ```
|
||||||
|
</span>MultiplesInRange {
|
||||||
|
<span class="doccomment">/// The positive integer to find multiples for.
|
||||||
|
</span>n: u32,
|
||||||
|
<span class="doccomment">/// The upper bound of the range to find multiples in.
|
||||||
|
</span>upper_bound: u32,
|
||||||
|
<span class="doccomment">/// Whether or not to return the raw output.
|
||||||
|
</span><span class="attr">#[arg(short = <span class="string">'r'</span>, long)]
|
||||||
|
</span>raw: bool,
|
||||||
|
},
|
||||||
|
<span class="doccomment">/// Finds all primes in a given range.
|
||||||
|
///
|
||||||
|
/// ## Example
|
||||||
|
///
|
||||||
|
/// ### Input
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// lz prealgebra primes-in-range 1 10
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ### Output
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// The primes in the range [1, 10] are [2, 3, 5, 7].
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ## Raw Output (use `-r` or `--raw`)
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// [2, 3, 5, 7]
|
||||||
|
/// ```
|
||||||
|
</span>PrimesInRange {
|
||||||
|
<span class="doccomment">/// The lower bound of the range to find primes in.
|
||||||
|
</span>lower_bound: u32,
|
||||||
|
<span class="doccomment">/// The upper bound of the range to find primes in.
|
||||||
|
</span>upper_bound: u32,
|
||||||
|
<span class="doccomment">/// Whether or not to return the raw output.
|
||||||
|
</span><span class="attr">#[arg(short = <span class="string">'r'</span>, long)]
|
||||||
|
</span>raw: bool,
|
||||||
|
},
|
||||||
|
<span class="doccomment">/// Finds the prime factorization of a positive integer.
|
||||||
|
///
|
||||||
|
/// ## Example
|
||||||
|
///
|
||||||
|
/// ### Input
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// lz prealgebra prime-factorization 12
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ### Output
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// The prime factorization of 12 is {2: 2, 3: 1}.
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ## Raw Output (use `-r` or `--raw`)
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// {2: 2, 3: 1}
|
||||||
|
/// ```
|
||||||
|
</span>PrimeFactorization {
|
||||||
|
<span class="doccomment">/// The positive integer to find the prime factorization of.
|
||||||
|
</span>n: u32,
|
||||||
|
<span class="doccomment">/// Whether or not to return the raw output.
|
||||||
|
</span><span class="attr">#[arg(short = <span class="string">'r'</span>, long)]
|
||||||
|
</span>raw: bool,
|
||||||
|
},
|
||||||
|
<span class="doccomment">/// Determines if a positive integer is composite.
|
||||||
|
///
|
||||||
|
/// ## Example
|
||||||
|
///
|
||||||
|
/// ### Input
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// lz prealgebra is-composite 12
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ### Output
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// 12 is composite.
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ## Raw Output (use `-r` or `--raw`)
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// true
|
||||||
|
/// ```
|
||||||
|
</span>IsComposite {
|
||||||
|
<span class="doccomment">/// The positive integer to determine if it is composite.
|
||||||
|
</span>n: u32,
|
||||||
|
<span class="doccomment">/// Whether or not to return the raw output.
|
||||||
|
</span><span class="attr">#[arg(short = <span class="string">'r'</span>, long)]
|
||||||
|
</span>raw: bool,
|
||||||
|
},
|
||||||
|
<span class="doccomment">/// Determines if a positive integer is prime.
|
||||||
|
///
|
||||||
|
/// ## Example
|
||||||
|
///
|
||||||
|
/// ### Input
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// lz prealgebra is-prime 12
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ### Output
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// 12 is not prime.
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ## Raw Output (use `-r` or `--raw`)
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// false
|
||||||
|
/// ```
|
||||||
|
</span>IsPrime {
|
||||||
|
<span class="doccomment">/// The positive integer to determine if it is prime.
|
||||||
|
</span>n: u32,
|
||||||
|
<span class="doccomment">/// Whether or not to return the raw output.
|
||||||
|
</span><span class="attr">#[arg(short = <span class="string">'r'</span>, long)]
|
||||||
|
</span>raw: bool,
|
||||||
|
},
|
||||||
|
<span class="doccomment">/// Determines if a positive integer is a factor of another positive integer.
|
||||||
|
///
|
||||||
|
/// ## Example
|
||||||
|
///
|
||||||
|
/// ### Input
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// lz prealgebra is-factor 3 12
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ### Output
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// 3 is a factor of 12.
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ## Raw Output (use `-r` or `--raw`)
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// true
|
||||||
|
/// ```
|
||||||
|
</span>IsFactor {
|
||||||
|
<span class="doccomment">/// The positive integer to determine if it is a factor.
|
||||||
|
</span>n: u32,
|
||||||
|
<span class="doccomment">/// The positive integer to determine if it is a multiple.
|
||||||
|
</span>m: u32,
|
||||||
|
<span class="doccomment">/// Whether or not to return the raw output.
|
||||||
|
</span><span class="attr">#[arg(short = <span class="string">'r'</span>, long)]
|
||||||
|
</span>raw: bool,
|
||||||
|
},
|
||||||
|
<span class="doccomment">/// Determines if a positive integer is a multiple of another positive integer.
|
||||||
|
///
|
||||||
|
/// ## Example
|
||||||
|
///
|
||||||
|
/// ### Input
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// lz prealgebra is-multiple 12 3
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ### Output
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// 12 is a multiple of 3.
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// ## Raw Output (use `-r` or `--raw`)
|
||||||
|
///
|
||||||
|
/// ```bash
|
||||||
|
/// true
|
||||||
|
/// ```
|
||||||
|
</span>IsMultiple {
|
||||||
|
<span class="doccomment">/// The positive integer to determine if it is a multiple.
|
||||||
|
</span>n: u32,
|
||||||
|
<span class="doccomment">/// The positive integer to determine if it is a factor.
|
||||||
|
</span>m: u32,
|
||||||
|
<span class="doccomment">/// Whether or not to return the raw output.
|
||||||
|
</span><span class="attr">#[arg(short = <span class="string">'r'</span>, long)]
|
||||||
|
</span>raw: bool,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="kw">pub fn </span>match_prealgebra(function: <span class="prelude-ty">Option</span><Prealgebra>) {
|
||||||
|
<span class="kw">use </span>ladderz::prealgebra::<span class="kw-2">*</span>;
|
||||||
|
<span class="kw">match </span>function {
|
||||||
|
<span class="prelude-val">Some</span>(Prealgebra::FactorPairs { n, raw }) => <span class="kw">match </span>raw {
|
||||||
|
<span class="bool-val">true </span>=> <span class="macro">println!</span>(<span class="string">"{:?}"</span>, get_factor_pairs(n)),
|
||||||
|
<span class="bool-val">false </span>=> <span class="macro">println!</span>(<span class="string">"The factor pairs of {} are {:?}."</span>, n, get_factor_pairs(n)),
|
||||||
|
},
|
||||||
|
<span class="prelude-val">Some</span>(Prealgebra::Factors { n, raw }) => <span class="kw">match </span>raw {
|
||||||
|
<span class="bool-val">true </span>=> <span class="macro">println!</span>(<span class="string">"{:?}"</span>, get_factors(n)),
|
||||||
|
<span class="bool-val">false </span>=> <span class="macro">println!</span>(<span class="string">"The factors of {} are {:?}."</span>, n, get_factors(n)),
|
||||||
|
},
|
||||||
|
<span class="prelude-val">Some</span>(Prealgebra::MultiplesInRange {
|
||||||
|
n,
|
||||||
|
upper_bound,
|
||||||
|
raw,
|
||||||
|
}) => <span class="kw">match </span>raw {
|
||||||
|
<span class="bool-val">true </span>=> <span class="macro">println!</span>(<span class="string">"{:?}"</span>, get_multiples_in_range(n, upper_bound)),
|
||||||
|
<span class="bool-val">false </span>=> <span class="macro">println!</span>(
|
||||||
|
<span class="string">"The multiples of {} in the range [1, {}] are {:?}."</span>,
|
||||||
|
n,
|
||||||
|
upper_bound,
|
||||||
|
get_multiples_in_range(n, upper_bound)
|
||||||
|
),
|
||||||
|
},
|
||||||
|
<span class="prelude-val">Some</span>(Prealgebra::PrimesInRange {
|
||||||
|
lower_bound,
|
||||||
|
upper_bound,
|
||||||
|
raw,
|
||||||
|
}) => <span class="kw">match </span>raw {
|
||||||
|
<span class="bool-val">true </span>=> <span class="macro">println!</span>(<span class="string">"{:?}"</span>, get_primes_in_range(lower_bound, upper_bound)),
|
||||||
|
<span class="bool-val">false </span>=> <span class="macro">println!</span>(
|
||||||
|
<span class="string">"The primes in the range [{}, {}] are {:?}."</span>,
|
||||||
|
lower_bound,
|
||||||
|
upper_bound,
|
||||||
|
get_primes_in_range(lower_bound, upper_bound)
|
||||||
|
),
|
||||||
|
},
|
||||||
|
<span class="prelude-val">Some</span>(Prealgebra::PrimeFactorization { n, raw }) => <span class="kw">match </span>raw {
|
||||||
|
<span class="bool-val">true </span>=> <span class="macro">println!</span>(<span class="string">"{:?}"</span>, get_prime_factorization(n)),
|
||||||
|
<span class="bool-val">false </span>=> <span class="macro">println!</span>(
|
||||||
|
<span class="string">"The prime factorization of {} is {:?}."</span>,
|
||||||
|
n,
|
||||||
|
get_prime_factorization(n)
|
||||||
|
),
|
||||||
|
},
|
||||||
|
<span class="prelude-val">Some</span>(Prealgebra::IsComposite { n, raw }) => <span class="kw">match </span>raw {
|
||||||
|
<span class="bool-val">true </span>=> <span class="macro">println!</span>(<span class="string">"{:?}"</span>, is_composite(n)),
|
||||||
|
<span class="bool-val">false </span>=> <span class="macro">println!</span>(
|
||||||
|
<span class="string">"{} is {}composite."</span>,
|
||||||
|
n,
|
||||||
|
<span class="kw">if </span>is_composite(n) { <span class="string">"" </span>} <span class="kw">else </span>{ <span class="string">"not " </span>}
|
||||||
|
),
|
||||||
|
},
|
||||||
|
<span class="prelude-val">Some</span>(Prealgebra::IsPrime { n, raw }) => <span class="kw">match </span>raw {
|
||||||
|
<span class="bool-val">true </span>=> <span class="macro">println!</span>(<span class="string">"{:?}"</span>, is_prime(n)),
|
||||||
|
<span class="bool-val">false </span>=> <span class="macro">println!</span>(<span class="string">"{} is {}prime."</span>, n, <span class="kw">if </span>is_prime(n) { <span class="string">"" </span>} <span class="kw">else </span>{ <span class="string">"not " </span>}),
|
||||||
|
},
|
||||||
|
<span class="prelude-val">Some</span>(Prealgebra::IsFactor { n, m, raw }) => <span class="kw">match </span>raw {
|
||||||
|
<span class="bool-val">true </span>=> <span class="macro">println!</span>(<span class="string">"{:?}"</span>, is_factor(n, m)),
|
||||||
|
<span class="bool-val">false </span>=> <span class="macro">println!</span>(
|
||||||
|
<span class="string">"{} is {}a factor of {}."</span>,
|
||||||
|
n,
|
||||||
|
<span class="kw">if </span>is_factor(n, m) { <span class="string">"" </span>} <span class="kw">else </span>{ <span class="string">"not " </span>},
|
||||||
|
m
|
||||||
|
),
|
||||||
|
},
|
||||||
|
<span class="prelude-val">Some</span>(Prealgebra::IsMultiple { n, m, raw }) => <span class="kw">match </span>raw {
|
||||||
|
<span class="bool-val">true </span>=> <span class="macro">println!</span>(<span class="string">"{:?}"</span>, is_multiple(n, m)),
|
||||||
|
<span class="bool-val">false </span>=> <span class="macro">println!</span>(
|
||||||
|
<span class="string">"{} is {}a multiple of {}."</span>,
|
||||||
|
n,
|
||||||
|
<span class="kw">if </span>is_multiple(n, m) { <span class="string">"" </span>} <span class="kw">else </span>{ <span class="string">"not " </span>},
|
||||||
|
m
|
||||||
|
),
|
||||||
|
},
|
||||||
|
<span class="prelude-val">None </span>=> {
|
||||||
|
<span class="macro">println!</span>(<span class="string">"Please provide a function to use."</span>);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</code></pre></div></section></main></body></html>
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
:root{--main-background-color:#0f1419;--main-color:#c5c5c5;--settings-input-color:#ffb454;--settings-input-border-color:#999;--settings-button-color:#fff;--settings-button-border-focus:#e0e0e0;--sidebar-background-color:#14191f;--sidebar-background-color-hover:rgba(70,70,70,0.33);--code-block-background-color:#191f26;--scrollbar-track-background-color:transparent;--scrollbar-thumb-background-color:#5c6773;--scrollbar-color:#5c6773 #24292f;--headings-border-bottom-color:#5c6773;--border-color:#5c6773;--button-background-color:#141920;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--search-input-focused-border-color:#5c6773;--copy-path-button-color:#fff;--copy-path-img-filter:invert(70%);--copy-path-img-hover-filter:invert(100%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--type-link-color:#ffa0a5;--trait-link-color:#39afd7;--assoc-item-link-color:#39afd7;--function-link-color:#fdd687;--macro-link-color:#a37acc;--keyword-link-color:#39afd7;--mod-link-color:#39afd7;--link-color:#39afd7;--sidebar-link-color:#53b1db;--sidebar-current-link-background-color:transparent;--search-result-link-focus-background-color:#3c3c3c;--search-result-border-color:#aaa3;--search-color:#fff;--search-error-code-background-color:#4f4c4c;--search-results-alias-color:#c5c5c5;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:none;--search-tab-button-not-selected-background:transparent !important;--search-tab-button-selected-border-top-color:none;--search-tab-button-selected-background:#141920 !important;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ff7733;--code-highlight-kw-2-color:#ff7733;--code-highlight-lifetime-color:#ff7733;--code-highlight-prelude-color:#69f2df;--code-highlight-prelude-val-color:#ff7733;--code-highlight-number-color:#b8cc52;--code-highlight-string-color:#b8cc52;--code-highlight-literal-color:#ff7733;--code-highlight-attribute-color:#e6e1cf;--code-highlight-self-color:#36a3d9;--code-highlight-macro-color:#a37acc;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#788797;--code-highlight-doc-comment-color:#a1ac88;--src-line-numbers-span-color:#5c6773;--src-line-number-highlighted-background-color:rgba(255,236,164,0.06);--test-arrow-color:#788797;--test-arrow-background-color:rgba(57,175,215,0.09);--test-arrow-hover-color:#c5c5c5;--test-arrow-hover-background-color:rgba(57,175,215,0.368);--target-background-color:rgba(255,236,164,0.06);--target-border-color:rgba(255,180,76,0.85);--kbd-color:#c5c5c5;--kbd-background:#314559;--kbd-box-shadow-color:#5c6773;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(41%) sepia(12%) saturate(487%) hue-rotate(171deg) brightness(94%) contrast(94%);--crate-search-div-hover-filter:invert(98%) sepia(12%) saturate(81%) hue-rotate(343deg) brightness(113%) contrast(76%);--crate-search-hover-border:#e0e0e0;--src-sidebar-background-selected:#14191f;--src-sidebar-background-hover:#14191f;--table-alt-row-background-color:#191f26;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:rgb(91,59,1);--scrape-example-code-line-highlight-focus:rgb(124,75,15);--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(15,20,25,1);--scrape-example-code-wrapper-background-end:rgba(15,20,25,0);}h1,h2,h3,h4,h1 a,.sidebar h2 a,.sidebar h3 a,#src-sidebar>.title{color:#fff;}h4{border:none;}.docblock code{color:#ffb454;}.docblock a>code{color:#39AFD7 !important;}.code-header,.docblock pre>code,pre,pre>code,.item-info code,.rustdoc.src .example-wrap{color:#e6e1cf;}.sidebar .current,.sidebar a:hover,#src-sidebar div.files>a:hover,details.dir-entry summary:hover,#src-sidebar div.files>a:focus,details.dir-entry summary:focus,#src-sidebar div.files>a.selected{color:#ffb44c;}.sidebar-elems .location{color:#ff7733;}.src-line-numbers .line-highlighted{color:#708090;padding-right:7px;border-right:1px solid #ffb44c;}.search-results a:hover,.search-results a:focus{color:#fff !important;background-color:#3c3c3c;}.search-results a{color:#0096cf;}.search-results a div.desc{color:#c5c5c5;}.result-name .primitive>i,.result-name .keyword>i{color:#788797;}#search-tabs>button.selected{border-bottom:1px solid #ffb44c !important;border-top:none;}#search-tabs>button:not(.selected){border:none;background-color:transparent !important;}#search-tabs>button:hover{border-bottom:1px solid rgba(242,151,24,0.3);}#settings-menu>a img{filter:invert(100);}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
:root{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--test-arrow-color:#dedede;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#dedede;--test-arrow-hover-background-color:rgb(78,139,202);--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--src-sidebar-background-selected:#333;--src-sidebar-background-hover:#444;--table-alt-row-background-color:#2A2A2A;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:rgb(91,59,1);--scrape-example-code-line-highlight-focus:rgb(124,75,15);--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
:root{--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#F5F5F5;--sidebar-background-color-hover:#E0E0E0;--code-block-background-color:#F5F5F5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#ffffff;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--test-arrow-color:#f5f5f5;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#f5f5f5;--test-arrow-hover-background-color:rgb(78,139,202);--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--src-sidebar-background-selected:#fff;--src-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#F5F5F5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);}
|
|
||||||
File diff suppressed because one or more lines are too long
12
static.files/main-9dd44ab47b99a0fb.js
Normal file
12
static.files/main-9dd44ab47b99a0fb.js
Normal file
File diff suppressed because one or more lines are too long
1
static.files/noscript-5d8b3c7633ad77ba.css
Normal file
1
static.files/noscript-5d8b3c7633ad77ba.css
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
||||||
#main-content .attributes{margin-left:0 !important;}#copy-path{display:none;}nav.sub{display:none;}.src .sidebar{display:none;}.notable-traits{display:none;}
|
|
||||||
10
static.files/rustdoc-9ee3a5e31a2afa3e.css
Normal file
10
static.files/rustdoc-9ee3a5e31a2afa3e.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
5
static.files/search-8fbf244ebcf71464.js
Normal file
5
static.files/search-8fbf244ebcf71464.js
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1,4 +1,4 @@
|
||||||
"use strict";(function(){const isSettingsPage=window.location.pathname.endsWith("/settings.html");function changeSetting(settingName,value){if(settingName==="theme"){const useSystem=value==="system preference"?"true":"false";updateLocalStorage("use-system-theme",useSystem)}updateLocalStorage(settingName,value);switch(settingName){case"theme":case"preferred-dark-theme":case"preferred-light-theme":updateTheme();updateLightAndDark();break;case"line-numbers":if(value===true){window.rustdoc_add_line_numbers_to_examples()}else{window.rustdoc_remove_line_numbers_from_examples()}break}}function showLightAndDark(){removeClass(document.getElementById("preferred-light-theme"),"hidden");removeClass(document.getElementById("preferred-dark-theme"),"hidden")}function hideLightAndDark(){addClass(document.getElementById("preferred-light-theme"),"hidden");addClass(document.getElementById("preferred-dark-theme"),"hidden")}function updateLightAndDark(){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||(useSystem===null&&getSettingValue("theme")===null)){showLightAndDark()}else{hideLightAndDark()}}function setEvents(settingsElement){updateLightAndDark();onEachLazy(settingsElement.querySelectorAll("input[type=\"checkbox\"]"),toggle=>{const settingId=toggle.id;const settingValue=getSettingValue(settingId);if(settingValue!==null){toggle.checked=settingValue==="true"}toggle.onchange=function(){changeSetting(this.id,this.checked)}});onEachLazy(settingsElement.querySelectorAll("input[type=\"radio\"]"),elem=>{const settingId=elem.name;let settingValue=getSettingValue(settingId);if(settingId==="theme"){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||settingValue===null){settingValue=useSystem==="false"?"light":"system preference"}}if(settingValue!==null&&settingValue!=="null"){elem.checked=settingValue===elem.value}elem.addEventListener("change",ev=>{changeSetting(ev.target.name,ev.target.value)})})}function buildSettingsPageSections(settings){let output="";for(const setting of settings){const js_data_name=setting["js_name"];const setting_name=setting["name"];if(setting["options"]!==undefined){output+=`\
|
"use strict";(function(){const isSettingsPage=window.location.pathname.endsWith("/settings.html");function changeSetting(settingName,value){if(settingName==="theme"){const useSystem=value==="system preference"?"true":"false";updateLocalStorage("use-system-theme",useSystem)}updateLocalStorage(settingName,value);switch(settingName){case"theme":case"preferred-dark-theme":case"preferred-light-theme":updateTheme();updateLightAndDark();break;case"line-numbers":if(value===true){window.rustdoc_add_line_numbers_to_examples()}else{window.rustdoc_remove_line_numbers_from_examples()}break}}function showLightAndDark(){removeClass(document.getElementById("preferred-light-theme"),"hidden");removeClass(document.getElementById("preferred-dark-theme"),"hidden")}function hideLightAndDark(){addClass(document.getElementById("preferred-light-theme"),"hidden");addClass(document.getElementById("preferred-dark-theme"),"hidden")}function updateLightAndDark(){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||(useSystem===null&&getSettingValue("theme")===null)){showLightAndDark()}else{hideLightAndDark()}}function setEvents(settingsElement){updateLightAndDark();onEachLazy(settingsElement.querySelectorAll("input[type=\"checkbox\"]"),toggle=>{const settingId=toggle.id;const settingValue=getSettingValue(settingId);if(settingValue!==null){toggle.checked=settingValue==="true"}toggle.onchange=()=>{changeSetting(toggle.id,toggle.checked)}});onEachLazy(settingsElement.querySelectorAll("input[type=\"radio\"]"),elem=>{const settingId=elem.name;let settingValue=getSettingValue(settingId);if(settingId==="theme"){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||settingValue===null){settingValue=useSystem==="false"?"light":"system preference"}}if(settingValue!==null&&settingValue!=="null"){elem.checked=settingValue===elem.value}elem.addEventListener("change",ev=>{changeSetting(ev.target.name,ev.target.value)})})}function buildSettingsPageSections(settings){let output="";for(const setting of settings){const js_data_name=setting["js_name"];const setting_name=setting["name"];if(setting["options"]!==undefined){output+=`\
|
||||||
<div class="setting-line" id="${js_data_name}">
|
<div class="setting-line" id="${js_data_name}">
|
||||||
<div class="setting-radio-name">${setting_name}</div>
|
<div class="setting-radio-name">${setting_name}</div>
|
||||||
<div class="setting-radio-choices">`;onEach(setting["options"],option=>{const checked=option===setting["default"]?" checked":"";const full=`${js_data_name}-${option.replace(/ /g,"-")}`;output+=`\
|
<div class="setting-radio-choices">`;onEach(setting["options"],option=>{const checked=option===setting["default"]?" checked":"";const full=`${js_data_name}-${option.replace(/ /g,"-")}`;output+=`\
|
||||||
|
|
@ -14,4 +14,4 @@
|
||||||
<input type="checkbox" id="${js_data_name}"${checked}>\
|
<input type="checkbox" id="${js_data_name}"${checked}>\
|
||||||
<span>${setting_name}</span>\
|
<span>${setting_name}</span>\
|
||||||
</label>\
|
</label>\
|
||||||
</div>`}}return output}function buildSettingsPage(){const theme_names=getVar("themes").split(",").filter(t=>t);theme_names.push("light","dark","ayu");const settings=[{"name":"Theme","js_name":"theme","default":"system preference","options":theme_names.concat("system preference"),},{"name":"Preferred light theme","js_name":"preferred-light-theme","default":"light","options":theme_names,},{"name":"Preferred dark theme","js_name":"preferred-dark-theme","default":"dark","options":theme_names,},{"name":"Auto-hide item contents for large items","js_name":"auto-hide-large-items","default":true,},{"name":"Auto-hide item methods' documentation","js_name":"auto-hide-method-docs","default":false,},{"name":"Auto-hide trait implementation documentation","js_name":"auto-hide-trait-implementations","default":false,},{"name":"Directly go to item in search if there is only one result","js_name":"go-to-only-result","default":false,},{"name":"Show line numbers on code examples","js_name":"line-numbers","default":false,},{"name":"Disable keyboard shortcuts","js_name":"disable-shortcuts","default":false,},];const elementKind=isSettingsPage?"section":"div";const innerHTML=`<div class="settings">${buildSettingsPageSections(settings)}</div>`;const el=document.createElement(elementKind);el.id="settings";if(!isSettingsPage){el.className="popover"}el.innerHTML=innerHTML;if(isSettingsPage){document.getElementById(MAIN_ID).appendChild(el)}else{el.setAttribute("tabindex","-1");getSettingsButton().appendChild(el)}return el}const settingsMenu=buildSettingsPage();function displaySettings(){settingsMenu.style.display=""}function settingsBlurHandler(event){blurHandler(event,getSettingsButton(),window.hidePopoverMenus)}if(isSettingsPage){getSettingsButton().onclick=function(event){event.preventDefault()}}else{const settingsButton=getSettingsButton();const settingsMenu=document.getElementById("settings");settingsButton.onclick=function(event){if(elemIsInParent(event.target,settingsMenu)){return}event.preventDefault();const shouldDisplaySettings=settingsMenu.style.display==="none";window.hideAllModals();if(shouldDisplaySettings){displaySettings()}};settingsButton.onblur=settingsBlurHandler;settingsButton.querySelector("a").onblur=settingsBlurHandler;onEachLazy(settingsMenu.querySelectorAll("input"),el=>{el.onblur=settingsBlurHandler});settingsMenu.onblur=settingsBlurHandler}setTimeout(()=>{setEvents(settingsMenu);if(!isSettingsPage){displaySettings()}removeClass(getSettingsButton(),"rotate")},0)})()
|
</div>`}}return output}function buildSettingsPage(){const theme_names=getVar("themes").split(",").filter(t=>t);theme_names.push("light","dark","ayu");const settings=[{"name":"Theme","js_name":"theme","default":"system preference","options":theme_names.concat("system preference"),},{"name":"Preferred light theme","js_name":"preferred-light-theme","default":"light","options":theme_names,},{"name":"Preferred dark theme","js_name":"preferred-dark-theme","default":"dark","options":theme_names,},{"name":"Auto-hide item contents for large items","js_name":"auto-hide-large-items","default":true,},{"name":"Auto-hide item methods' documentation","js_name":"auto-hide-method-docs","default":false,},{"name":"Auto-hide trait implementation documentation","js_name":"auto-hide-trait-implementations","default":false,},{"name":"Directly go to item in search if there is only one result","js_name":"go-to-only-result","default":false,},{"name":"Show line numbers on code examples","js_name":"line-numbers","default":false,},{"name":"Disable keyboard shortcuts","js_name":"disable-shortcuts","default":false,},];const elementKind=isSettingsPage?"section":"div";const innerHTML=`<div class="settings">${buildSettingsPageSections(settings)}</div>`;const el=document.createElement(elementKind);el.id="settings";if(!isSettingsPage){el.className="popover"}el.innerHTML=innerHTML;if(isSettingsPage){document.getElementById(MAIN_ID).appendChild(el)}else{el.setAttribute("tabindex","-1");getSettingsButton().appendChild(el)}return el}const settingsMenu=buildSettingsPage();function displaySettings(){settingsMenu.style.display=""}function settingsBlurHandler(event){blurHandler(event,getSettingsButton(),window.hidePopoverMenus)}if(isSettingsPage){getSettingsButton().onclick=event=>{event.preventDefault()}}else{const settingsButton=getSettingsButton();const settingsMenu=document.getElementById("settings");settingsButton.onclick=event=>{if(elemIsInParent(event.target,settingsMenu)){return}event.preventDefault();const shouldDisplaySettings=settingsMenu.style.display==="none";window.hideAllModals();if(shouldDisplaySettings){displaySettings()}};settingsButton.onblur=settingsBlurHandler;settingsButton.querySelector("a").onblur=settingsBlurHandler;onEachLazy(settingsMenu.querySelectorAll("input"),el=>{el.onblur=settingsBlurHandler});settingsMenu.onblur=settingsBlurHandler}setTimeout(()=>{setEvents(settingsMenu);if(!isSettingsPage){displaySettings()}removeClass(getSettingsButton(),"rotate")},0)})()
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
.setting-line{margin:1.2em 0.6em;}.setting-radio input,.setting-check input{margin-right:0.3em;height:1.2rem;width:1.2rem;border:2px solid var(--settings-input-border-color);outline:none;-webkit-appearance:none;cursor:pointer;}.setting-radio input{border-radius:50%;}.setting-radio span,.setting-check span{padding-bottom:1px;}.setting-radio{margin-top:0.1em;margin-bottom:0.1em;min-width:3.8em;padding:0.3em;display:inline-flex;align-items:center;cursor:pointer;}.setting-radio+.setting-radio{margin-left:0.5em;}.setting-check{margin-right:20px;display:flex;align-items:center;cursor:pointer;}.setting-radio input:checked{box-shadow:inset 0 0 0 3px var(--main-background-color);background-color:var(--settings-input-color);}.setting-check input:checked{background-color:var(--settings-input-color);border-width:1px;content:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40">\
|
|
||||||
<path d="M7,25L17,32L33,12" fill="none" stroke="black" stroke-width="5"/>\
|
|
||||||
<path d="M7,23L17,30L33,10" fill="none" stroke="white" stroke-width="5"/></svg>');}.setting-radio input:focus,.setting-check input:focus{box-shadow:0 0 1px 1px var(--settings-input-color);}.setting-radio input:checked:focus{box-shadow:inset 0 0 0 3px var(--main-background-color),0 0 2px 2px var(--settings-input-color);}.setting-radio input:hover,.setting-check input:hover{border-color:var(--settings-input-color) !important;}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
"use strict";const darkThemes=["dark","ayu"];window.currentTheme=document.getElementById("themeStyle");const settingsDataset=(function(){const settingsElement=document.getElementById("default-settings");return settingsElement&&settingsElement.dataset?settingsElement.dataset:null})();function getSettingValue(settingName){const current=getCurrentValue(settingName);if(current===null&&settingsDataset!==null){const def=settingsDataset[settingName.replace(/-/g,"_")];if(def!==undefined){return def}}return current}const localStoredTheme=getSettingValue("theme");function hasClass(elem,className){return elem&&elem.classList&&elem.classList.contains(className)}function addClass(elem,className){if(elem&&elem.classList){elem.classList.add(className)}}function removeClass(elem,className){if(elem&&elem.classList){elem.classList.remove(className)}}function onEach(arr,func,reversed){if(arr&&arr.length>0){if(reversed){for(let i=arr.length-1;i>=0;--i){if(func(arr[i])){return true}}}else{for(const elem of arr){if(func(elem)){return true}}}}return false}function onEachLazy(lazyArray,func,reversed){return onEach(Array.prototype.slice.call(lazyArray),func,reversed)}function updateLocalStorage(name,value){try{window.localStorage.setItem("rustdoc-"+name,value)}catch(e){}}function getCurrentValue(name){try{return window.localStorage.getItem("rustdoc-"+name)}catch(e){return null}}const getVar=(function getVar(name){const el=document.querySelector("head > meta[name='rustdoc-vars']");return el?el.attributes["data-"+name].value:null});function switchTheme(newThemeName,saveTheme){if(saveTheme){updateLocalStorage("theme",newThemeName)}let newHref;if(newThemeName==="light"||newThemeName==="dark"||newThemeName==="ayu"){newHref=getVar("static-root-path")+getVar("theme-"+newThemeName+"-css")}else{newHref=getVar("root-path")+newThemeName+getVar("resource-suffix")+".css"}if(!window.currentTheme){document.write(`<link rel="stylesheet" id="themeStyle" href="${newHref}">`);window.currentTheme=document.getElementById("themeStyle")}else if(newHref!==window.currentTheme.href){window.currentTheme.href=newHref}}const updateTheme=(function(){const mql=window.matchMedia("(prefers-color-scheme: dark)");function updateTheme(){if(getSettingValue("use-system-theme")!=="false"){const lightTheme=getSettingValue("preferred-light-theme")||"light";const darkTheme=getSettingValue("preferred-dark-theme")||"dark";updateLocalStorage("use-system-theme","true");switchTheme(mql.matches?darkTheme:lightTheme,true)}else{switchTheme(getSettingValue("theme"),false)}}mql.addEventListener("change",updateTheme);return updateTheme})();if(getSettingValue("use-system-theme")!=="false"&&window.matchMedia){if(getSettingValue("use-system-theme")===null&&getSettingValue("preferred-dark-theme")===null&&darkThemes.indexOf(localStoredTheme)>=0){updateLocalStorage("preferred-dark-theme",localStoredTheme)}}updateTheme();if(getSettingValue("source-sidebar-show")==="true"){addClass(document.documentElement,"src-sidebar-expanded")}window.addEventListener("pageshow",ev=>{if(ev.persisted){setTimeout(updateTheme,0)}})
|
|
||||||
1
static.files/storage-fec3eaa3851e447d.js
Normal file
1
static.files/storage-fec3eaa3851e447d.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
"use strict";const builtinThemes=["light","dark","ayu"];const darkThemes=["dark","ayu"];window.currentTheme=document.getElementById("themeStyle");const settingsDataset=(function(){const settingsElement=document.getElementById("default-settings");return settingsElement&&settingsElement.dataset?settingsElement.dataset:null})();function getSettingValue(settingName){const current=getCurrentValue(settingName);if(current===null&&settingsDataset!==null){const def=settingsDataset[settingName.replace(/-/g,"_")];if(def!==undefined){return def}}return current}const localStoredTheme=getSettingValue("theme");function hasClass(elem,className){return elem&&elem.classList&&elem.classList.contains(className)}function addClass(elem,className){if(elem&&elem.classList){elem.classList.add(className)}}function removeClass(elem,className){if(elem&&elem.classList){elem.classList.remove(className)}}function onEach(arr,func,reversed){if(arr&&arr.length>0){if(reversed){for(let i=arr.length-1;i>=0;--i){if(func(arr[i])){return true}}}else{for(const elem of arr){if(func(elem)){return true}}}}return false}function onEachLazy(lazyArray,func,reversed){return onEach(Array.prototype.slice.call(lazyArray),func,reversed)}function updateLocalStorage(name,value){try{window.localStorage.setItem("rustdoc-"+name,value)}catch(e){}}function getCurrentValue(name){try{return window.localStorage.getItem("rustdoc-"+name)}catch(e){return null}}const getVar=(function getVar(name){const el=document.querySelector("head > meta[name='rustdoc-vars']");return el?el.attributes["data-"+name].value:null});function switchTheme(newThemeName,saveTheme){if(saveTheme){updateLocalStorage("theme",newThemeName)}document.documentElement.setAttribute("data-theme",newThemeName);if(builtinThemes.indexOf(newThemeName)!==-1){if(window.currentTheme){window.currentTheme.parentNode.removeChild(window.currentTheme);window.currentTheme=null}}else{const newHref=getVar("root-path")+newThemeName+getVar("resource-suffix")+".css";if(!window.currentTheme){if(document.readyState==="loading"){document.write(`<link rel="stylesheet" id="themeStyle" href="${newHref}">`);window.currentTheme=document.getElementById("themeStyle")}else{window.currentTheme=document.createElement("link");window.currentTheme.rel="stylesheet";window.currentTheme.id="themeStyle";window.currentTheme.href=newHref;document.documentElement.appendChild(window.currentTheme)}}else if(newHref!==window.currentTheme.href){window.currentTheme.href=newHref}}}const updateTheme=(function(){const mql=window.matchMedia("(prefers-color-scheme: dark)");function updateTheme(){if(getSettingValue("use-system-theme")!=="false"){const lightTheme=getSettingValue("preferred-light-theme")||"light";const darkTheme=getSettingValue("preferred-dark-theme")||"dark";updateLocalStorage("use-system-theme","true");switchTheme(mql.matches?darkTheme:lightTheme,true)}else{switchTheme(getSettingValue("theme"),false)}}mql.addEventListener("change",updateTheme);return updateTheme})();if(getSettingValue("use-system-theme")!=="false"&&window.matchMedia){if(getSettingValue("use-system-theme")===null&&getSettingValue("preferred-dark-theme")===null&&darkThemes.indexOf(localStoredTheme)>=0){updateLocalStorage("preferred-dark-theme",localStoredTheme)}}updateTheme();if(getSettingValue("source-sidebar-show")==="true"){addClass(document.documentElement,"src-sidebar-expanded")}window.addEventListener("pageshow",ev=>{if(ev.persisted){setTimeout(updateTheme,0)}})
|
||||||
3
trait.impl/clap_builder/derive/trait.Args.js
Normal file
3
trait.impl/clap_builder/derive/trait.Args.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
(function() {var implementors = {
|
||||||
|
"lz":[["impl Args for <a class=\"struct\" href=\"lz/struct.Cli.html\" title=\"struct lz::Cli\">Cli</a>"]]
|
||||||
|
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
||||||
3
trait.impl/clap_builder/derive/trait.CommandFactory.js
Normal file
3
trait.impl/clap_builder/derive/trait.CommandFactory.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
(function() {var implementors = {
|
||||||
|
"lz":[["impl CommandFactory for <a class=\"struct\" href=\"lz/struct.Cli.html\" title=\"struct lz::Cli\">Cli</a>"]]
|
||||||
|
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
||||||
3
trait.impl/clap_builder/derive/trait.FromArgMatches.js
Normal file
3
trait.impl/clap_builder/derive/trait.FromArgMatches.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
(function() {var implementors = {
|
||||||
|
"lz":[["impl FromArgMatches for <a class=\"struct\" href=\"lz/struct.Cli.html\" title=\"struct lz::Cli\">Cli</a>"],["impl FromArgMatches for <a class=\"enum\" href=\"lz/enum.Subjects.html\" title=\"enum lz::Subjects\">Subjects</a>"],["impl FromArgMatches for <a class=\"enum\" href=\"lz/prealgebra/enum.Prealgebra.html\" title=\"enum lz::prealgebra::Prealgebra\">Prealgebra</a>"]]
|
||||||
|
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
||||||
3
trait.impl/clap_builder/derive/trait.Parser.js
Normal file
3
trait.impl/clap_builder/derive/trait.Parser.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
(function() {var implementors = {
|
||||||
|
"lz":[["impl Parser for <a class=\"struct\" href=\"lz/struct.Cli.html\" title=\"struct lz::Cli\">Cli</a>"]]
|
||||||
|
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
||||||
3
trait.impl/clap_builder/derive/trait.Subcommand.js
Normal file
3
trait.impl/clap_builder/derive/trait.Subcommand.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
(function() {var implementors = {
|
||||||
|
"lz":[["impl Subcommand for <a class=\"enum\" href=\"lz/enum.Subjects.html\" title=\"enum lz::Subjects\">Subjects</a>"],["impl Subcommand for <a class=\"enum\" href=\"lz/prealgebra/enum.Prealgebra.html\" title=\"enum lz::prealgebra::Prealgebra\">Prealgebra</a>"]]
|
||||||
|
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
||||||
3
trait.impl/core/marker/trait.Freeze.js
Normal file
3
trait.impl/core/marker/trait.Freeze.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
(function() {var implementors = {
|
||||||
|
"lz":[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/marker/trait.Freeze.html\" title=\"trait core::marker::Freeze\">Freeze</a> for <a class=\"enum\" href=\"lz/prealgebra/enum.Prealgebra.html\" title=\"enum lz::prealgebra::Prealgebra\">Prealgebra</a>",1,["lz::prealgebra::Prealgebra"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/marker/trait.Freeze.html\" title=\"trait core::marker::Freeze\">Freeze</a> for <a class=\"struct\" href=\"lz/struct.Cli.html\" title=\"struct lz::Cli\">Cli</a>",1,["lz::Cli"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/marker/trait.Freeze.html\" title=\"trait core::marker::Freeze\">Freeze</a> for <a class=\"enum\" href=\"lz/enum.Subjects.html\" title=\"enum lz::Subjects\">Subjects</a>",1,["lz::Subjects"]]]
|
||||||
|
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
||||||
3
trait.impl/core/marker/trait.Send.js
Normal file
3
trait.impl/core/marker/trait.Send.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
(function() {var implementors = {
|
||||||
|
"lz":[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/marker/trait.Send.html\" title=\"trait core::marker::Send\">Send</a> for <a class=\"enum\" href=\"lz/prealgebra/enum.Prealgebra.html\" title=\"enum lz::prealgebra::Prealgebra\">Prealgebra</a>",1,["lz::prealgebra::Prealgebra"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/marker/trait.Send.html\" title=\"trait core::marker::Send\">Send</a> for <a class=\"struct\" href=\"lz/struct.Cli.html\" title=\"struct lz::Cli\">Cli</a>",1,["lz::Cli"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/marker/trait.Send.html\" title=\"trait core::marker::Send\">Send</a> for <a class=\"enum\" href=\"lz/enum.Subjects.html\" title=\"enum lz::Subjects\">Subjects</a>",1,["lz::Subjects"]]]
|
||||||
|
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
||||||
3
trait.impl/core/marker/trait.Sync.js
Normal file
3
trait.impl/core/marker/trait.Sync.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
(function() {var implementors = {
|
||||||
|
"lz":[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/marker/trait.Sync.html\" title=\"trait core::marker::Sync\">Sync</a> for <a class=\"enum\" href=\"lz/prealgebra/enum.Prealgebra.html\" title=\"enum lz::prealgebra::Prealgebra\">Prealgebra</a>",1,["lz::prealgebra::Prealgebra"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/marker/trait.Sync.html\" title=\"trait core::marker::Sync\">Sync</a> for <a class=\"struct\" href=\"lz/struct.Cli.html\" title=\"struct lz::Cli\">Cli</a>",1,["lz::Cli"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/marker/trait.Sync.html\" title=\"trait core::marker::Sync\">Sync</a> for <a class=\"enum\" href=\"lz/enum.Subjects.html\" title=\"enum lz::Subjects\">Subjects</a>",1,["lz::Subjects"]]]
|
||||||
|
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
||||||
3
trait.impl/core/marker/trait.Unpin.js
Normal file
3
trait.impl/core/marker/trait.Unpin.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
(function() {var implementors = {
|
||||||
|
"lz":[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> for <a class=\"enum\" href=\"lz/prealgebra/enum.Prealgebra.html\" title=\"enum lz::prealgebra::Prealgebra\">Prealgebra</a>",1,["lz::prealgebra::Prealgebra"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> for <a class=\"struct\" href=\"lz/struct.Cli.html\" title=\"struct lz::Cli\">Cli</a>",1,["lz::Cli"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> for <a class=\"enum\" href=\"lz/enum.Subjects.html\" title=\"enum lz::Subjects\">Subjects</a>",1,["lz::Subjects"]]]
|
||||||
|
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
||||||
3
trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js
Normal file
3
trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
(function() {var implementors = {
|
||||||
|
"lz":[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/panic/unwind_safe/trait.RefUnwindSafe.html\" title=\"trait core::panic::unwind_safe::RefUnwindSafe\">RefUnwindSafe</a> for <a class=\"enum\" href=\"lz/prealgebra/enum.Prealgebra.html\" title=\"enum lz::prealgebra::Prealgebra\">Prealgebra</a>",1,["lz::prealgebra::Prealgebra"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/panic/unwind_safe/trait.RefUnwindSafe.html\" title=\"trait core::panic::unwind_safe::RefUnwindSafe\">RefUnwindSafe</a> for <a class=\"struct\" href=\"lz/struct.Cli.html\" title=\"struct lz::Cli\">Cli</a>",1,["lz::Cli"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/panic/unwind_safe/trait.RefUnwindSafe.html\" title=\"trait core::panic::unwind_safe::RefUnwindSafe\">RefUnwindSafe</a> for <a class=\"enum\" href=\"lz/enum.Subjects.html\" title=\"enum lz::Subjects\">Subjects</a>",1,["lz::Subjects"]]]
|
||||||
|
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
||||||
3
trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js
Normal file
3
trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
(function() {var implementors = {
|
||||||
|
"lz":[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/panic/unwind_safe/trait.UnwindSafe.html\" title=\"trait core::panic::unwind_safe::UnwindSafe\">UnwindSafe</a> for <a class=\"enum\" href=\"lz/prealgebra/enum.Prealgebra.html\" title=\"enum lz::prealgebra::Prealgebra\">Prealgebra</a>",1,["lz::prealgebra::Prealgebra"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/panic/unwind_safe/trait.UnwindSafe.html\" title=\"trait core::panic::unwind_safe::UnwindSafe\">UnwindSafe</a> for <a class=\"struct\" href=\"lz/struct.Cli.html\" title=\"struct lz::Cli\">Cli</a>",1,["lz::Cli"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.75.0/core/panic/unwind_safe/trait.UnwindSafe.html\" title=\"trait core::panic::unwind_safe::UnwindSafe\">UnwindSafe</a> for <a class=\"enum\" href=\"lz/enum.Subjects.html\" title=\"enum lz::Subjects\">Subjects</a>",1,["lz::Subjects"]]]
|
||||||
|
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue