Page 11, found in 67 ms

  1. rust.docs.kernel.orghttps://rust.docs.kernel.org › core › io › struct.Cursor
    More about rust.docs.kernel.org
    Cursor in core::io - Rust

    … T> where T: Clone , Source § fn clone (&self) -> Self Returns a duplicate of the value. Read more Source § fn clone_from (&mut self, other: &Self) Performs copy-assignment from source . Read more …

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

    … CovariantUnsafeCell<T> requires unsafe code. § Examples #![feature(covariant_unsafe_cell)] use std::cell::CovariantUnsafeCell; let uc = CovariantUnsafeCell::new( 5 ); Source pub const fn into_inner (self) -> T 🔬 This is a nightly-only …

    0 points
  3. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › borrow › trait.Borrow
    More about rust.docs.kernel.org
    Borrow in core::borrow - Rust

    … called "object safety". Implementors § Source § impl Borrow <[ u8 ]> for ByteStr 1.4.0 (const: unstable ) · Source § impl<T, const N: usize > Borrow < [T] > for [T; N] 1.0.0 (const: unstable ) · Source § impl<T: ? Sized > Borrow …

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

    … converted to a Rust <code>&[str]</code> by performing 27 /// UTF-8 validation, or into an owned `CString`. 28 /// 29 /// `&CStr` is to `CString` as <code>&[str]</code> is to `String`: the …

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

    … converted to a Rust <code>&[str]</code> by performing 27 /// UTF-8 validation, or into an owned `CString`. 28 /// 29 /// `&CStr` is to `CString` as <code>&[str]</code> is to `String`: the …

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

    Skip to main content core/ffi/ mod.rs 1 //! Platform-specific types, as defined by C. 2 //! 3 //! Code that interacts via FFI will almost certainly be using the 4 //! base types provided …

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

    … devres , 17 error::{ 18 code :: * , 19 from_result , 20 to_result , 21 Result , 22 VTABLE_DEFAULT_ERROR , // 23 }, 24 ffi::{ c_char , c_ulong }, 25 prelude :: * , 26 types::ForeignOwnable , 27 types::Opaque …

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

    … so Rust 33 //! user code directly calling the C functions should follow the C specification! The advice for 34 //! Rust user code is to call the functions provided by this library instead …

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

    … internal error: entered unreachable code: " , $fmt ), $( $arg ) * ) 81 ), 82 } 83 84 #[doc(hidden)] 85 #[unstable(feature = "edition_panic" , issue = "none" , reason = "use unreachable!() instead" )] 86 #[allow_internal_unstable(panic_internals)] 87 #[rustc …

    0 points
  10. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › pci › id.rs
    More about rust.docs.kernel.org
    id.rs - source

    … a valid PCI class code. 71 impl Class { 72 /// Create a [`Class`] from a raw 24-bit class code. 73 #[inline] 74 pub ( super ) fn from_raw(class_code: u32 ) -> Self { 75 …

    0 points

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