+/livesplit-wrapper
git clone https://git.julia.blue/+/livesplit-wrapper
b0170e4
gh-pages
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 ="Trait for types which are Zeroable when wrapped in Option. ">< meta name ="keywords "content ="rust, rustlang, rust-lang, ZeroableInOption ">< title > ZeroableInOption in bytemuck - Rust</ title >< link rel ="preload "as ="font "type ="font/woff2 "crossorigin href ="../SourceSerif4-Regular.ttf.woff2 ">< link rel ="preload "as ="font "type ="font/woff2 "crossorigin href ="../FiraSans-Regular.woff2 ">< link rel ="preload "as ="font "type ="font/woff2 "crossorigin href ="../FiraSans-Medium.woff2 ">< link rel ="preload "as ="font "type ="font/woff2 "crossorigin href ="../SourceCodePro-Regular.ttf.woff2 ">< link rel ="preload "as ="font "type ="font/woff2 "crossorigin href ="../SourceSerif4-Bold.ttf.woff2 ">< link rel ="preload "as ="font "type ="font/woff2 "crossorigin href ="../SourceCodePro-Semibold.ttf.woff2 ">< link rel ="stylesheet "href ="../normalize.css ">< link rel ="stylesheet "href ="../rustdoc.css "id ="mainThemeStyle ">< link rel ="stylesheet "href ="../ayu.css "disabled >< link rel ="stylesheet "href ="../dark.css "disabled >< link rel ="stylesheet "href ="../light.css "id ="themeStyle ">< script id ="default-settings "></ script >< script src ="../storage.js "></ script >< script defer src ="sidebar-items.js "></ script >< script defer src ="../main.js "></ script >< noscript >< link rel ="stylesheet "href ="../noscript.css "></ noscript >< link rel ="alternate icon "type ="image/png "href ="../favicon-16x16.png ">< link rel ="alternate icon "type ="image/png "href ="../favicon-32x32.png ">< link rel ="icon "type ="image/svg+xml "href ="../favicon.svg "></ head >< body class ="rustdoc trait "> <!--[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 ="sidebar-logo "href ="../bytemuck/index.html ">< div class ="logo-container ">< img class ="rust-logo "src ="../rust-logo.svg "alt ="logo "></ div ></ a >< h2 class ="location "></ h2 ></ nav >< nav class ="sidebar ">< a class ="sidebar-logo "href ="../bytemuck/index.html ">< div class ="logo-container ">< img class ="rust-logo "src ="../rust-logo.svg "alt ="logo "></ div ></ a >< h2 class ="location ">< a href ="# "> ZeroableInOption</ a ></ h2 >< div class ="sidebar-elems ">< section >< div class ="block ">< h3 class ="sidebar-title ">< a href ="#foreign-impls "> Implementations on Foreign Types</ a ></ h3 >< ul >< li >< a href ="#impl-ZeroableInOption-for-NonNull%3CT%3E "> NonNull<T></ a ></ li >< li >< a href ="#impl-ZeroableInOption-for-NonZeroI128 "> NonZeroI128</ a ></ li >< li >< a href ="#impl-ZeroableInOption-for-NonZeroI16 "> NonZeroI16</ a ></ li >< li >< a href ="#impl-ZeroableInOption-for-NonZeroI32 "> NonZeroI32</ a ></ li >< li >< a href ="#impl-ZeroableInOption-for-NonZeroI64 "> NonZeroI64</ a ></ li >< li >< a href ="#impl-ZeroableInOption-for-NonZeroI8 "> NonZeroI8</ a ></ li >< li >< a href ="#impl-ZeroableInOption-for-NonZeroIsize "> NonZeroIsize</ a ></ li >< li >< a href ="#impl-ZeroableInOption-for-NonZeroU128 "> NonZeroU128</ a ></ li >< li >< a href ="#impl-ZeroableInOption-for-NonZeroU16 "> NonZeroU16</ a ></ li >< li >< a href ="#impl-ZeroableInOption-for-NonZeroU32 "> NonZeroU32</ a ></ li >< li >< a href ="#impl-ZeroableInOption-for-NonZeroU64 "> NonZeroU64</ a ></ li >< li >< a href ="#impl-ZeroableInOption-for-NonZeroU8 "> NonZeroU8</ a ></ li >< li >< a href ="#impl-ZeroableInOption-for-NonZeroUsize "> NonZeroUsize</ a ></ li ></ ul ></ div >< div class ="block ">< h3 class ="sidebar-title ">< a href ="#implementors "> Implementors</ a ></ h3 ></ div ></ section >< h2 class ="location ">< a href ="index.html "> In bytemuck</ a ></ h2 ></ div ></ nav >< main >< div class ="width-limiter ">< div class ="sub-container ">< a class ="sub-logo-container "href ="../bytemuck/index.html ">< img class ="rust-logo "src ="../rust-logo.svg "alt ="logo "></ a >< nav class ="sub ">< form class ="search-form ">< div class ="search-container ">< span ></ span >< input class ="search-input "name ="search "autocomplete ="off "spellcheck ="false "placeholder ="Click or press ‘S’ to search, ‘?’ for more options… "type ="search ">< div id ="help-button "title ="help "tabindex ="-1 ">< button type ="button "> ?</ button ></ div >< div id ="settings-menu "tabindex ="-1 ">< a href ="../settings.html "title ="settings ">< img width ="22 "height ="22 "alt ="Change settings "src ="../wheel.svg "></ a ></ div ></ div ></ form ></ nav ></ div >< section id ="main-content "class ="content ">< div class ="main-heading ">< h1 class ="fqn ">< span class ="in-band "> Trait< a href ="index.html "> bytemuck</ a > ::< wbr >< a class ="trait "href ="# "> ZeroableInOption</ a >< button id ="copy-path "onclick ="copy_path(this) "title ="Copy item path to clipboard ">< img src ="../clipboard.svg "width ="19 "height ="18 "alt ="Copy item path "></ button ></ span ></ h1 >< span class ="out-of-band ">< a class ="srclink "href ="../src/bytemuck/zeroable_in_option.rs.html#13 "> source</ a > ·< a id ="toggle-all-docs "href ="javascript:void(0) "title ="collapse all docs "> [< span class ="inner "> −</ span > ]</ a ></ span ></ div >< div class ="item-decl ">< pre class ="rust trait ">< code > pub unsafe trait ZeroableInOption:< a class ="trait "href ="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "title ="trait core::marker::Sized "> Sized</ a > { }</ code ></ pre ></ div >< details class ="rustdoc-toggle top-doc "open >< summary class ="hideme ">< span > Expand description</ span ></ summary >< div class ="docblock ">< p > Trait for types which are< a href ="trait.Zeroable.html "> Zeroable</ a > when wrapped in 2< a href ="https://doc.rust-lang.org/nightly/core/option/enum.Option.html "> Option</ a > .</ p > 3< h3 id ="safety ">< a href ="#safety "> Safety</ a ></ h3 > 4< ul > 5< li >< code > Option<YourType></ code > must uphold the same invariants as 6< a href ="trait.Zeroable.html "> Zeroable</ a > .</ li > 7</ ul > 8</ div ></ details >< h2 id ="foreign-impls "class ="small-section-header "> Implementations on Foreign Types< a href ="#foreign-impls "class ="anchor "></ a ></ h2 >< section id ="impl-ZeroableInOption-for-NonZeroI8 "class ="impl has-srclink ">< a class ="srclink rightside "href ="../src/bytemuck/zeroable_in_option.rs.html#15 "> source</ a >< a href ="#impl-ZeroableInOption-for-NonZeroI8 "class ="anchor "></ a >< h3 class ="code-header in-band "> impl< a class ="trait "href ="trait.ZeroableInOption.html "title ="trait bytemuck::ZeroableInOption "> ZeroableInOption</ a > for< a class ="struct "href ="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroI8.html "title ="struct core::num::nonzero::NonZeroI8 "> NonZeroI8</ a ></ h3 ></ section >< section id ="impl-ZeroableInOption-for-NonZeroI16 "class ="impl has-srclink ">< a class ="srclink rightside "href ="../src/bytemuck/zeroable_in_option.rs.html#16 "> source</ a >< a href ="#impl-ZeroableInOption-for-NonZeroI16 "class ="anchor "></ a >< h3 class ="code-header in-band "> impl< a class ="trait "href ="trait.ZeroableInOption.html "title ="trait bytemuck::ZeroableInOption "> ZeroableInOption</ a > for< a class ="struct "href ="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroI16.html "title ="struct core::num::nonzero::NonZeroI16 "> NonZeroI16</ a ></ h3 ></ section >< section id ="impl-ZeroableInOption-for-NonZeroI32 "class ="impl has-srclink ">< a class ="srclink rightside "href ="../src/bytemuck/zeroable_in_option.rs.html#17 "> source</ a >< a href ="#impl-ZeroableInOption-for-NonZeroI32 "class ="anchor "></ a >< h3 class ="code-header in-band "> impl< a class ="trait "href ="trait.ZeroableInOption.html "title ="trait bytemuck::ZeroableInOption "> ZeroableInOption</ a > for< a class ="struct "href ="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroI32.html "title ="struct core::num::nonzero::NonZeroI32 "> NonZeroI32</ a ></ h3 ></ section >< section id ="impl-ZeroableInOption-for-NonZeroI64 "class ="impl has-srclink ">< a class ="srclink rightside "href ="../src/bytemuck/zeroable_in_option.rs.html#18 "> source</ a >< a href ="#impl-ZeroableInOption-for-NonZeroI64 "class ="anchor "></ a >< h3 class ="code-header in-band "> impl< a class ="trait "href ="trait.ZeroableInOption.html "title ="trait bytemuck::ZeroableInOption "> ZeroableInOption</ a > for< a class ="struct "href ="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroI64.html "title ="struct core::num::nonzero::NonZeroI64 "> NonZeroI64</ a ></ h3 ></ section >< section id ="impl-ZeroableInOption-for-NonZeroI128 "class ="impl has-srclink ">< a class ="srclink rightside "href ="../src/bytemuck/zeroable_in_option.rs.html#19 "> source</ a >< a href ="#impl-ZeroableInOption-for-NonZeroI128 "class ="anchor "></ a >< h3 class ="code-header in-band "> impl< a class ="trait "href ="trait.ZeroableInOption.html "title ="trait bytemuck::ZeroableInOption "> ZeroableInOption</ a > for< a class ="struct "href ="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroI128.html "title ="struct core::num::nonzero::NonZeroI128 "> NonZeroI128</ a ></ h3 ></ section >< section id ="impl-ZeroableInOption-for-NonZeroIsize "class ="impl has-srclink ">< a class ="srclink rightside "href ="../src/bytemuck/zeroable_in_option.rs.html#20 "> source</ a >< a href ="#impl-ZeroableInOption-for-NonZeroIsize "class ="anchor "></ a >< h3 class ="code-header in-band "> impl< a class ="trait "href ="trait.ZeroableInOption.html "title ="trait bytemuck::ZeroableInOption "> ZeroableInOption</ a > for< a class ="struct "href ="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroIsize.html "title ="struct core::num::nonzero::NonZeroIsize "> NonZeroIsize</ a ></ h3 ></ section >< section id ="impl-ZeroableInOption-for-NonZeroU8 "class ="impl has-srclink ">< a class ="srclink rightside "href ="../src/bytemuck/zeroable_in_option.rs.html#21 "> source</ a >< a href ="#impl-ZeroableInOption-for-NonZeroU8 "class ="anchor "></ a >< h3 class ="code-header in-band "> impl< a class ="trait "href ="trait.ZeroableInOption.html "title ="trait bytemuck::ZeroableInOption "> ZeroableInOption</ a > for< a class ="struct "href ="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroU8.html "title ="struct core::num::nonzero::NonZeroU8 "> NonZeroU8</ a ></ h3 ></ section >< section id ="impl-ZeroableInOption-for-NonZeroU16 "class ="impl has-srclink ">< a class ="srclink rightside "href ="../src/bytemuck/zeroable_in_option.rs.html#22 "> source</ a >< a href ="#impl-ZeroableInOption-for-NonZeroU16 "class ="anchor "></ a >< h3 class ="code-header in-band "> impl< a class ="trait "href ="trait.ZeroableInOption.html "title ="trait bytemuck::ZeroableInOption "> ZeroableInOption</ a > for< a class ="struct "href ="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroU16.html "title ="struct core::num::nonzero::NonZeroU16 "> NonZeroU16</ a ></ h3 ></ section >< section id ="impl-ZeroableInOption-for-NonZeroU32 "class ="impl has-srclink ">< a class ="srclink rightside "href ="../src/bytemuck/zeroable_in_option.rs.html#23 "> source</ a >< a href ="#impl-ZeroableInOption-for-NonZeroU32 "class ="anchor "></ a >< h3 class ="code-header in-band "> impl< a class ="trait "href ="trait.ZeroableInOption.html "title ="trait bytemuck::ZeroableInOption "> ZeroableInOption</ a > for< a class ="struct "href ="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroU32.html "title ="struct core::num::nonzero::NonZeroU32 "> NonZeroU32</ a ></ h3 ></ section >< section id ="impl-ZeroableInOption-for-NonZeroU64 "class ="impl has-srclink ">< a class ="srclink rightside "href ="../src/bytemuck/zeroable_in_option.rs.html#24 "> source</ a >< a href ="#impl-ZeroableInOption-for-NonZeroU64 "class ="anchor "></ a >< h3 class ="code-header in-band "> impl< a class ="trait "href ="trait.ZeroableInOption.html "title ="trait bytemuck::ZeroableInOption "> ZeroableInOption</ a > for< a class ="struct "href ="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroU64.html "title ="struct core::num::nonzero::NonZeroU64 "> NonZeroU64</ a ></ h3 ></ section >< section id ="impl-ZeroableInOption-for-NonZeroU128 "class ="impl has-srclink ">< a class ="srclink rightside "href ="../src/bytemuck/zeroable_in_option.rs.html#25 "> source</ a >< a href ="#impl-ZeroableInOption-for-NonZeroU128 "class ="anchor "></ a >< h3 class ="code-header in-band "> impl< a class ="trait "href ="trait.ZeroableInOption.html "title ="trait bytemuck::ZeroableInOption "> ZeroableInOption</ a > for< a class ="struct "href ="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroU128.html "title ="struct core::num::nonzero::NonZeroU128 "> NonZeroU128</ a ></ h3 ></ section >< section id ="impl-ZeroableInOption-for-NonZeroUsize "class ="impl has-srclink ">< a class ="srclink rightside "href ="../src/bytemuck/zeroable_in_option.rs.html#26 "> source</ a >< a href ="#impl-ZeroableInOption-for-NonZeroUsize "class ="anchor "></ a >< h3 class ="code-header in-band "> impl< a class ="trait "href ="trait.ZeroableInOption.html "title ="trait bytemuck::ZeroableInOption "> ZeroableInOption</ a > for< a class ="struct "href ="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroUsize.html "title ="struct core::num::nonzero::NonZeroUsize "> NonZeroUsize</ a ></ h3 ></ section >< section id ="impl-ZeroableInOption-for-NonNull%3CT%3E "class ="impl has-srclink ">< a class ="srclink rightside "href ="../src/bytemuck/zeroable_in_option.rs.html#28 "> source</ a >< a href ="#impl-ZeroableInOption-for-NonNull%3CT%3E "class ="anchor "></ a >< h3 class ="code-header in-band "> impl<T>< a class ="trait "href ="trait.ZeroableInOption.html "title ="trait bytemuck::ZeroableInOption "> ZeroableInOption</ a > for< a class ="struct "href ="https://doc.rust-lang.org/nightly/core/ptr/non_null/struct.NonNull.html "title ="struct core::ptr::non_null::NonNull "> NonNull</ a > <T></ h3 ></ section >< h2 id ="implementors "class ="small-section-header "> Implementors< a href ="#implementors "class ="anchor "></ a ></ h2 >< div class ="item-list "id ="implementors-list "></ div >< script src ="../implementors/bytemuck/zeroable_in_option/trait.ZeroableInOption.js "data-ignore-extern-crates ="core "async ></ script ></ section ></ div ></ main >< div id ="rustdoc-vars "data-root-path ="../ "data-current-crate ="bytemuck "data-themes ="ayu,dark,light "data-resource-suffix =""data-rustdoc-version ="1.66.0-nightly (4a1467723 2022-09-23) "></ div ></ body ></ html >