Page 4, found in 115 ms

  1. rust.docs.kernel.orghttps://rust.docs.kernel.org › kernel › revocable › struct.Revocable
    More about rust.docs.kernel.org
    Revocable in kernel::revocable - Rust

    … into a proper error code and flattens the inner result into it if it makes sense within their subsystem. Source pub unsafe fn access (&self) -> &T Directly access the revocable wrapped object …

    0 points
  2. rust.docs.kernel.orghttps://rust.docs.kernel.org › core › pin › struct.UnsafePinned
    More about rust.docs.kernel.org
    UnsafePinned in core::pin - Rust

    … UnsafePinned<T>> requires unsafe code. Source pub const fn into_inner (self) -> T 🔬 This is a nightly-only experimental API. ( unsafe_pinned #125735 ) Unwraps the value, consuming this UnsafePinned . Source § impl<T …

    0 points
  3. rust.docs.kernel.orghttps://rust.docs.kernel.org › core › mem › struct.ManuallyDrop
    More about rust.docs.kernel.org
    ManuallyDrop in core::mem - Rust

    … more 1.0.0 (const: unstable ) · Source § fn clone_from (&mut self, source: &Self) where Self:, Performs copy-assignment from source . Read more Source § impl<T: CloneFromCell > CloneFromCell for ManuallyDrop <T> 1.20.0 · Source § impl …

    0 points
  4. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › core › default.rs
    More about rust.docs.kernel.org
    default.rs - source

    … 13 /// ``` 14 /// # #[allow(dead_code)] 15 /// struct SomeOptions { 16 /// foo: i32, 17 /// bar: f32, 18 /// } 19 /// ``` 20 /// 21 /// How can we define some default values? You can use `Default`: 22 /// 23 /// ``` 24 …

    0 points
  5. rust.docs.kernel.orghttps://rust.docs.kernel.org › src › core › panic.rs
    More about rust.docs.kernel.org
    panic.rs - source

    … internal error: entered unreachable code" ) 91 ), 92 ($( $t :tt)+) => ( 93 $crate::panic !( "internal error: entered unreachable code: {}" , $crate::format_args !($( $t )+)) 94 ), 95 } 96 97 /// Invokes a closure, aborting if the closure …

    0 points
  6. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › cell › struct.UnsafeCell
    More about rust.docs.kernel.org
    UnsafeCell in core::cell - Rust

    … 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 …

    0 points
  7. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › pin › struct.UnsafePinned
    More about rust.docs.kernel.org
    UnsafePinned in core::pin - Rust

    … UnsafePinned<T>> requires unsafe code. Source pub const fn into_inner (self) -> T 🔬 This is a nightly-only experimental API. ( unsafe_pinned #125735 ) Unwraps the value, consuming this UnsafePinned . Source § impl<T …

    0 points
  8. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › mem › struct.ManuallyDrop
    More about rust.docs.kernel.org
    ManuallyDrop in core::mem - Rust

    … more 1.0.0 (const: unstable ) · Source § fn clone_from (&mut self, source: &Self) where Self:, Performs copy-assignment from source . Read more Source § impl<T: CloneFromCell > CloneFromCell for ManuallyDrop <T> 1.20.0 · Source § impl …

    0 points
  9. rust.docs.kernel.orghttps://rust.docs.kernel.org › src › core › panicking.rs
    More about rust.docs.kernel.org
    panicking.rs - source

    … jump into this 156 // code rather than expanding to panic("...") above, which adds extra bloat to call sites (for the 157 // constant string argument's pointer and length). 158 // 159 // This is especially …

    0 points
  10. rust.docs.kernel.orghttps://rust.docs.kernel.org › core › intrinsics › enum.AtomicOrdering
    More about rust.docs.kernel.org
    AtomicOrdering in core::intrinsics - Rust

    … core_intrinsics ) Trait Implementations § Source § impl ConstParamTy_ for AtomicOrdering Source § impl Debug for AtomicOrdering Source § fn fmt (&self, f: &mut Formatter <'_>) -> Result Formats the value using the given formatter. Read more Source …

    0 points

Search for “source code site:rust.docs.kernel.org” on Google, or add !ddg, !w and other shortcuts to any search.