Page 9, found in 93 ms

  1. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › cmp › trait.Ord
    More about rust.docs.kernel.org
    Ord in core::cmp - Rust

    Skip to main content Ord core :: cmp Trait Ord 1.6.0 (const: unstable ) · Source pub trait Ord: Eq + PartialOrd <Self> + PointeeSized { // Required method fn cmp (&self, other: &Self) -> Ordering ; // Provided methods fn max …

    0 points
  2. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › alloc › trait.AllocatorNightly
    More about rust.docs.kernel.org
    AllocatorNightly in core::alloc - Rust

    … called "object safety". Implementors § Source § impl<A: Allocator + ? Sized > AllocatorNightly for &A This trait impl is unstable and only usable on nightly with feature(allocator_ext) . Source § impl<A: Allocator + ? Sized > AllocatorNightly …

    0 points
  3. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › mem › maybe_uninit.rs
    More about rust.docs.kernel.org
    maybe_uninit.rs - source

    … upheld, even in unsafe code. As a consequence, zero-initializing a 15 /// variable of reference type causes instantaneous undefined behavior, 16 /// no matter whether that reference ever gets used to access memory …

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

    … upheld, even in unsafe code. As a consequence, zero-initializing a 15 /// variable of reference type causes instantaneous undefined behavior, 16 /// no matter whether that reference ever gets used to access memory …

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

    … concern only arises in code that alters the type of function pointers, and code that imports functions via extern blocks. Altering the type of function pointers is wildly unsafe (as in, a …

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

    … wishing to avoid unsafe code may implement the Wake trait instead, at the cost of a required heap allocation.) 1.36.0 (const: 1.82.0) · Source pub const unsafe fn from_raw (waker: RawWaker ) -> Waker …

    0 points
  7. rust.docs.kernel.orghttps://rust.docs.kernel.org › pin_init › trait.PinnedDrop
    More about rust.docs.kernel.org
    PinnedDrop in pin_init - Rust

    Skip to main content PinnedDrop pin_init Trait Pinned Drop Source pub unsafe trait PinnedDrop: HasPinData { // Required method fn drop (self: Pin <&mut Self>, only_call_from_drop: OnlyCallFromDrop); } Expand description Trait …

    0 points
  8. rust.docs.kernel.orghttps://rust.docs.kernel.org › src › 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 › … › ops › drop.rs
    More about rust.docs.kernel.org
    drop.rs - source

    Skip to main content core/ops/ drop.rs 1 use crate ::pin::Pin ; 2 3 /// Custom code within the destructor. 4 /// 5 /// When a value is no longer needed, Rust will run a …

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

    … for FFI or unsafe code, but even 96 /// then, [`ManuallyDrop`] is typically preferred. 97 /// 98 /// Because forgetting a value is allowed, any `unsafe` code you write must 99 /// allow for this possibility …

    0 points

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