Skip to content

Commit

Permalink
Use variant_count feature in signal handler enum (theseus-os#967) 5…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramla-I committed Jun 7, 2023
1 parent 0c46241 commit 7116390
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 19 deletions.
6 changes: 3 additions & 3 deletions doc/signal_handler/enum.ErrorCode.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/signal_handler/enum.Signal.html
Original file line number Diff line number Diff line change
@@ -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="The possible signals that may occur due to CPU exceptions."><meta name="keywords" content="rust, rustlang, rust-lang, Signal"><title>Signal in signal_handler - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-1f7d512b176f0f72.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-124a1ca42af929b6.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-fbcde169c4acde5f.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-4743e13df3dfe8c4.css"><link rel="stylesheet" disabled href="../static.files/dark-0e1b889528bd466b.css"><link rel="stylesheet" disabled href="../static.files/ayu-65289d5d067c7c66.css"><script id="default-settings" ></script><script src="../static.files/storage-d43fa987303ecbbb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-bc1b32400f872ddb.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-13285aec31fa243e.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 enum"><!--[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">&#9776;</button><a class="logo-container" href="../signal_handler/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="../signal_handler/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Signal</a></h2><div class="sidebar-elems"><section><h3><a href="#variants">Variants</a></h3><ul class="block"><li><a href="#variant.ArithmeticError">ArithmeticError</a></li><li><a href="#variant.BusError">BusError</a></li><li><a href="#variant.IllegalInstruction">IllegalInstruction</a></li><li><a href="#variant.InvalidAddress">InvalidAddress</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-Clone-for-Signal">Clone</a></li><li><a href="#impl-Copy-for-Signal">Copy</a></li><li><a href="#impl-Debug-for-Signal">Debug</a></li><li><a href="#impl-Eq-for-Signal">Eq</a></li><li><a href="#impl-Hash-for-Signal">Hash</a></li><li><a href="#impl-Ord-for-Signal">Ord</a></li><li><a href="#impl-PartialEq%3CSignal%3E-for-Signal">PartialEq&lt;Signal&gt;</a></li><li><a href="#impl-PartialOrd%3CSignal%3E-for-Signal">PartialOrd&lt;Signal&gt;</a></li><li><a href="#impl-StructuralEq-for-Signal">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq-for-Signal">StructuralPartialEq</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-Signal">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Signal">Send</a></li><li><a href="#impl-Sync-for-Signal">Sync</a></li><li><a href="#impl-Unpin-for-Signal">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Signal">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-Signal">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-Signal">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-Signal">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-CallHasher-for-Signal">CallHasher</a></li><li><a href="#impl-Erased-for-Signal">Erased</a></li><li><a href="#impl-From%3CT%3E-for-Signal">From&lt;T&gt;</a></li><li><a href="#impl-Into%3CU%3E-for-Signal">Into&lt;U&gt;</a></li><li><a href="#impl-ToOwned-for-Signal">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-Signal">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-Signal">TryInto&lt;U&gt;</a></li></ul></section><h2><a href="index.html">In signal_handler</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-5ec35bf9ca753509.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Enum <a href="index.html">signal_handler</a>::<wbr><a class="enum" href="#">Signal</a><button id="copy-path" onclick="copy_path(this)" 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="srclink" href="../src/signal_handler/lib.rs.html#89-105">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><div class="item-decl"><pre class="rust enum"><code>#[repr(u8)]
<!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="The possible signals that may occur due to CPU exceptions."><meta name="keywords" content="rust, rustlang, rust-lang, Signal"><title>Signal in signal_handler - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-1f7d512b176f0f72.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-124a1ca42af929b6.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-fbcde169c4acde5f.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-4743e13df3dfe8c4.css"><link rel="stylesheet" disabled href="../static.files/dark-0e1b889528bd466b.css"><link rel="stylesheet" disabled href="../static.files/ayu-65289d5d067c7c66.css"><script id="default-settings" ></script><script src="../static.files/storage-d43fa987303ecbbb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-bc1b32400f872ddb.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-13285aec31fa243e.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 enum"><!--[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">&#9776;</button><a class="logo-container" href="../signal_handler/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="../signal_handler/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Signal</a></h2><div class="sidebar-elems"><section><h3><a href="#variants">Variants</a></h3><ul class="block"><li><a href="#variant.ArithmeticError">ArithmeticError</a></li><li><a href="#variant.BusError">BusError</a></li><li><a href="#variant.IllegalInstruction">IllegalInstruction</a></li><li><a href="#variant.InvalidAddress">InvalidAddress</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-Clone-for-Signal">Clone</a></li><li><a href="#impl-Copy-for-Signal">Copy</a></li><li><a href="#impl-Debug-for-Signal">Debug</a></li><li><a href="#impl-Eq-for-Signal">Eq</a></li><li><a href="#impl-Hash-for-Signal">Hash</a></li><li><a href="#impl-Ord-for-Signal">Ord</a></li><li><a href="#impl-PartialEq%3CSignal%3E-for-Signal">PartialEq&lt;Signal&gt;</a></li><li><a href="#impl-PartialOrd%3CSignal%3E-for-Signal">PartialOrd&lt;Signal&gt;</a></li><li><a href="#impl-StructuralEq-for-Signal">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq-for-Signal">StructuralPartialEq</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-Signal">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Signal">Send</a></li><li><a href="#impl-Sync-for-Signal">Sync</a></li><li><a href="#impl-Unpin-for-Signal">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Signal">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-Signal">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-Signal">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-Signal">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-CallHasher-for-Signal">CallHasher</a></li><li><a href="#impl-Erased-for-Signal">Erased</a></li><li><a href="#impl-From%3CT%3E-for-Signal">From&lt;T&gt;</a></li><li><a href="#impl-Into%3CU%3E-for-Signal">Into&lt;U&gt;</a></li><li><a href="#impl-ToOwned-for-Signal">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-Signal">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-Signal">TryInto&lt;U&gt;</a></li></ul></section><h2><a href="index.html">In signal_handler</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-5ec35bf9ca753509.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Enum <a href="index.html">signal_handler</a>::<wbr><a class="enum" href="#">Signal</a><button id="copy-path" onclick="copy_path(this)" 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="srclink" href="../src/signal_handler/lib.rs.html#89-102">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><div class="item-decl"><pre class="rust enum"><code>#[repr(u8)]
pub enum Signal {
InvalidAddress,
IllegalInstruction,
Expand Down
Loading

0 comments on commit 7116390

Please sign in to comment.