Page 3, found in 64 ms

  1. rust.docs.kernel.orghttps://rust.docs.kernel.org › core › 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
  2. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › ops › function.rs
    More about rust.docs.kernel.org
    function.rs - source

    … closure with no arguments: `|| {{ /* code */ }}`" 63 ), 64 on( 65 Self = "unsafe fn" , 66 note = "unsafe function cannot be called generically without an unsafe block" , 67 // SAFETY: tidy is not smart enough to …

    0 points
  3. rust.docs.kernel.orghttps://rust.docs.kernel.org › src › kernel › error.rs
    More about rust.docs.kernel.org
    error.rs - source

    … the C-compatible error codes. 20 #[rustfmt::skip] 21 pub mod code { 22 macro_rules! declare_err { 23 ( $err :tt $(,) ? $( $doc :expr),+) => { 24 $( 25 #[doc = $doc ] 26 )* 27 pub const $err : super …

    0 points
  4. rust.docs.kernel.orghttps://rust.docs.kernel.org › core › primitive.never
    More about rust.docs.kernel.org
    never - Rust

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

    0 points
  5. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › io › error.rs
    More about rust.docs.kernel.org
    error.rs - source

    … representation assumes that error codes are 5 // always 32-bit wide. 6 // 7 // This assumption is invalid on 64-bit UEFI, where error codes are 64-bit. 8 // Therefore, the packed representation …

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

    … as_ref`] converts from <code>[&][][Option]\<T></code> to <code>[Option]<[&]T></code> 182 //! * [`as_mut`] converts from <code>[&mut] [Option]\<T></code> to <code>[Option]<[&mut] T></code> 183 //! * [`as_deref …

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

    … intended to be the source of truth for users of [`Pin<Ptr>`] 36 //! that are implementing the [`unsafe`] pieces of an interface that relies on pinning for validity; 37 //! users of [`Pin …

    0 points
  8. rust.docs.kernel.orghttps://rust.docs.kernel.org › next › core › primitive.char
    More about rust.docs.kernel.org
    char - Rust

    … of_val( & v[..])); Implementations § Source § impl char 1.83.0 · Source pub const MIN : char = '\0' The lowest valid code point a char can have, '\0' . Unlike integer types, char actually has a gap …

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

    … as_ref`] converts from <code>[&][][Option]\<T></code> to <code>[Option]<[&]T></code> 182 //! * [`as_mut`] converts from <code>[&mut] [Option]\<T></code> to <code>[Option]<[&mut] T></code> 183 //! * [`as_deref …

    0 points
  10. rust.docs.kernel.orghttps://rust.docs.kernel.org › core › primitive.char
    More about rust.docs.kernel.org
    char - Rust

    … of_val( & v[..])); Implementations § Source § impl char 1.83.0 · Source pub const MIN : char = '\0' The lowest valid code point a char can have, '\0' . Unlike integer types, char actually has a gap …

    0 points

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