Page 9, found in 93 ms
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › cmp › trait.OrdOrd in core::cmp - Rust
More about rust.docs.kernel.org
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 …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › alloc › trait.AllocatorNightlyAllocatorNightly in core::alloc - Rust
More about rust.docs.kernel.org
… 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 …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › mem › maybe_uninit.rsmaybe_uninit.rs - source
More about rust.docs.kernel.org
… 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 …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › mem › maybe_uninit.rsmaybe_uninit.rs - source
More about rust.docs.kernel.org
… 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 …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › next › core › primitive.fnfn - Rust
More about rust.docs.kernel.org
… 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 …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › task › struct.WakerWaker in core::task - Rust
More about rust.docs.kernel.org
… 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 …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › pin_init › trait.PinnedDropPinnedDrop in pin_init - Rust
More about rust.docs.kernel.org
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 …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › src › core › lib.rslib.rs - source
More about rust.docs.kernel.org
… 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 …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › ops › drop.rsdrop.rs - source
More about rust.docs.kernel.org
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 …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › mem › mod.rsmod.rs - source
More about rust.docs.kernel.org
… 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 …
Search for “Source Code site:rust.docs.kernel.org” on Google, or add !ddg, !w and other shortcuts to any search.