Page 2, found in 71 ms
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › pci › enum.ClassMaskClassMask in kernel::pci - Rust
More about rust.docs.kernel.org
… bits of the class code (base class and subclass only) Implementations § Source § impl ClassMask Source pub const fn as_raw (self) -> u32 Get the raw mask value. Trait Implementations § Source § impl Clone …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › next › core › primitive.referencereference - Rust
More about rust.docs.kernel.org
… As a consequence, unsafe code which violates these invariants temporarily on internal data may be unsound or become unsound in future versions of Rust depending on how this question is decided. Trait …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › src › core › attribute_docs.rsattribute_docs.rs - source
More about rust.docs.kernel.org
… 93 /// ``` 94 /// #[allow(dead_code)] 95 /// fn unused_function() { 96 /// // ... 97 /// } 98 /// 99 /// fn main() { 100 /// // `unused_function` does not generate a compiler warning. 101 /// } 102 /// ``` 103 /// 104 /// Without `#[allow(dead_code …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › mem › maybe_dangling.rsmaybe_dangling.rs - source
More about rust.docs.kernel.org
… executing (particularly in concurrent code). As a somewhat absurd example, consider this code: 14 /// 15 /// ```rust,no_run 16 /// # use std::alloc::{dealloc, Layout}; 17 /// # use std::mem; 18 /// 19 /// let mut …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › ops › trait.TryTry in core::ops - Rust
More about rust.docs.kernel.org
… for ControlFlow <B, C> Source § type Output = C Source § type Residual = ControlFlow <B, ! > Source § impl<T, E> Try for Poll < Option < Result <T, E>>> Source § type Output = Poll < Option <T>> Source § type …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › ops › trait.FnPtrFnPtr in core::ops - Rust
More about rust.docs.kernel.org
… from_ptr (ptr: NonNull < Code >) -> Self; } 🔬 This is a nightly-only experimental API. ( fn_static #148768 ) Expand description A common trait implemented by all function pointers. Required Methods § Source unsafe fn from …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › char › decode.rsdecode.rs - source
More about rust.docs.kernel.org
… when decoding UTF-16 code points. 24 /// 25 /// This `struct` is created when using the [`DecodeUtf16`] type. 26 #[stable(feature = "decode_utf16" , since = "1.9.0" )] 27 #[derive( Debug , Clone , Eq , PartialEq )] 28 pub …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › next › core › primitive.nevernever - Rust
More about rust.docs.kernel.org
… more 1.0.0 (const: unstable ) · Source § fn clone_from (&mut self, source: &Self) where Self:, Performs copy-assignment from source . Read more 1.100.0 · Source § impl Copy for ! 1.100.0 · Source § impl Debug for ! Source …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › core › cell › struct.UnsafeCellUnsafeCell in core::cell - Rust
More about rust.docs.kernel.org
… UnsafeCell<T> requires unsafe code. § Examples use std::cell::UnsafeCell; let uc = UnsafeCell::new( 5 ); 1.0.0 (const: 1.83.0) · Source pub const fn into_inner (self) -> T Unwraps the value, consuming the cell …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › char › convert.rsconvert.rs - source
More about rust.docs.kernel.org
… the value of the code point, then zero-extended to 128 bit. 94 // See [https://doc.rust-lang.org/reference/expressions/operator-expr.html#semantics] 95 c as u128 96 } 97 } 98 99 /// Maps a …
Search for “Source Code site:rust.docs.kernel.org” on Google, or add !ddg, !w and other shortcuts to any search.